mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-22 07:02:58 +02:00
lint with golangci-lint
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
// Render executes a parsed template (go-template) with configuration from data
|
||||
// Render executes a parsed template (go-template) with configuration from data.
|
||||
func Render(template *template.Template, data interface{}) (string, error) {
|
||||
var buffer bytes.Buffer
|
||||
if err := template.Execute(&buffer, data); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user