fix(doc): Follow Go recommendations
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
// Utils package provides some utility functions used in katenary. It defines some constants and functions used in the whole project.
|
||||
// Package utils provides some utility functions used in katenary.
|
||||
// It defines some constants and functions used in the whole project.
|
||||
package utils
|
||||
|
@@ -90,7 +90,7 @@ func GetContainerByName(name string, containers []corev1.Container) (*corev1.Con
|
||||
return nil, -1
|
||||
}
|
||||
|
||||
// GetContainerByName returns a container by name and its index in the array.
|
||||
// TplValue returns a container by name and its index in the array.
|
||||
func TplValue(serviceName, variable string, pipes ...string) string {
|
||||
if len(pipes) == 0 {
|
||||
return `{{ tpl .Values.` + serviceName + `.` + variable + ` $ }}`
|
||||
|
Reference in New Issue
Block a user