tools

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FullFuncMap = template.FuncMap{
	"UppercaseBeginning":    UppercaseBeginning,
	"LowercaseBeginning":    LowercaseBeginning,
	"Pluralize":             Pluralize,
	"Unslice":               Unslice,
	"UnaliasSQLBoilerSlice": UnaliasSQLBoilerSlice,
	"SnakeCase":             strcase.SnakeCase,
	"CamelCase":             strcase.LowerCamelCase,
	"PascalCase":            strcase.UpperCamelCase,
	"KebabCase":             strcase.KebabCase,
}

Functions

func LowercaseBeginning

func LowercaseBeginning(str string) string

func Pluralize

func Pluralize(str string) string

func UnaliasSQLBoilerSlice

func UnaliasSQLBoilerSlice(str string) string

func Unslice

func Unslice(str string) string

func UppercaseBeginning

func UppercaseBeginning(str string) string

Types

type Struct

type Struct struct {
	StructName   string
	StructFields []StructField
}

func NewStructModel

func NewStructModel(target any) Struct

type StructField

type StructField struct {
	FieldName        string
	FieldType        string
	FieldTags        string
	LogicalFieldName string
}

Jump to

Keyboard shortcuts

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