helpers

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFlagToKeyValue

func ConvertFlagToKeyValue(values []string) map[string]interface{}

ConvertFlagToKeyValue function convert the key=value list into an interface maps format.

func Extension

func Extension(filename string) string

func GetDirectory

func GetDirectory(filename string) string

func GetFileName

func GetFileName(filename string) string

func GetFuncMap

func GetFuncMap() template.FuncMap

Funcs internals and Sprig Reference: https://masterminds.github.io/sprig/

func IncludeFile

func IncludeFile(filename string) string

IncludeFile - <filename> the file path is relative to the gomodeler CLI

func MergeMaps

func MergeMaps(maps ...map[string]any) map[string]any

func ReadFilesDir

func ReadFilesDir(path string) []string

func SumFunc

func SumFunc(c, i int) int

Adds the SUM function for the template file

func ToArrayString

func ToArrayString(input string, character ...string) []string

func ToBool

func ToBool(t any, valueTrue ...any) bool

func ToCamelCase

func ToCamelCase(t string) string

func ToJSON

func ToJSON(data any) any

func ToKebabCaseLower

func ToKebabCaseLower(t string) string

ToKebabCaseLower Kebab Case

func ToKebabCaseUpper

func ToKebabCaseUpper(t string) string

ToKebabCaseUpper Screaming kebab case

func ToPascalCase

func ToPascalCase(t string) string

func ToSnakeCaseLower

func ToSnakeCaseLower(t string) string

func ToSnakeCaseUpper

func ToSnakeCaseUpper(t string) string

func ToYAML

func ToYAML(data any) any

func WithoutExtension

func WithoutExtension(filename string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL