utils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsStringHelper added in v0.3.0

func ContainsStringHelper() template.FuncMap

ContainsStringHelper returns the function map for seeing if strings are contained within other strings.

func QuoteStringHelper added in v0.3.0

func QuoteStringHelper() template.FuncMap

QuoteStringHelper returns the function map for quoting strings in templates.

func RemoveStringHelper added in v0.3.0

func RemoveStringHelper() template.FuncMap

RemoveStringHelper returns the function map for quoting strings in templates.

func TemplateHelpers added in v0.3.0

func TemplateHelpers() template.FuncMap

TemplateHelpers returns all of the template helpers in the utils package.

func ToFileName

func ToFileName(name string) string

ToFileName will convert a kebab-case string to a snake_case name appropriate to use in a go filename.

func ToPackageName

func ToPackageName(name string) string

ToPackageName will convert a kebab-case string to an alllower name appropriate for directory and package names.

func ToPascalCase

func ToPascalCase(name string) string

ToPascalCase will convert a kebab-case string to a PascalCase name appropriate to use as a go variable name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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