utils

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 31, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyEscapeChar added in v0.1.4

func ApplyEscapeChar(data string) string

func GenerateCode

func GenerateCode(tplFS embed.FS, tplFile string, data interface{}) (string, error)

func GetMockTmpl added in v0.1.4

func GetMockTmpl() embed.FS

func ToCamelCase added in v0.1.6

func ToCamelCase(s string) string

ToCamelCase converts a string to camel case (e.g., "myUser" -> "MyUser")

func ToSnakeCase added in v0.1.6

func ToSnakeCase(s string) string

ToSnakeCase converts a string to snake case (e.g., "MyUser" -> "my_user")

func TransformString added in v0.1.6

func TransformString(s string) (camelCase, snakeCase string)

TransformString transforms the input string to camel case or snake case based on the input format

Types

This section is empty.

Jump to

Keyboard shortcuts

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