Help us shape the future of Go! Take the 2026 Go Developer Survey

codegen

package
v1.32.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCaseToSnakeCase

func CamelCaseToSnakeCase(s string) string

func FatalIfErr

func FatalIfErr(err error)

func Fatalf

func Fatalf(format string, v ...any)

func GenerateTemplateToFile

func GenerateTemplateToFile(
	tmpl string,
	data any,
	outPath string,
	outFileName string,
)

func GenerateTemplateToWriter

func GenerateTemplateToWriter(tmpl string, data any, w io.Writer) error

func GenerateToFile

func GenerateToFile[T any](
	generator func(io.Writer, T) error,
	generatorArg T,
	outPath string,
	outFileName string,
)

func IsASCIIUpper

func IsASCIIUpper(c rune) bool

func SnakeCaseToPascalCase

func SnakeCaseToPascalCase(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