helpers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrModuleNotFound = errors.New("module not found")

Functions

func CamelCase

func CamelCase(s string) string

func Close

func Close(closer io.Closer)

func ExecTemplate

func ExecTemplate(payload string, data interface{}) (string, error)

func FormatGoFile

func FormatGoFile(data string) ([]byte, error)

func GoName

func GoName(s string) string

func ModuleFromGoMod

func ModuleFromGoMod() (string, error)

func SnakeCase

func SnakeCase(s string) string

func WriteToFile

func WriteToFile(path string, data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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