utils

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectories

func CreateDirectories(basePath string, dirs []string) error

CreateDirectories creates multiple directories.

func CreateFiles

func CreateFiles(basePath string, files []string) error

CreateFiles creates multiple files.

func ExecuteTemplateFromBytes

func ExecuteTemplateFromBytes(templateContent []byte, data interface{}, outputPath string) error

func GenerateFile

func GenerateFile(name, fileType string, templateContent []byte) error

GenerateFile generates a file from a template with the given name and type. used in make_generator.go

func ToCamelCase

func ToCamelCase(s string) string

func ToLowerCase

func ToLowerCase(s string) string

func ToSnakeCase

func ToSnakeCase(s 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