gogenutils

package module
v0.0.0-...-62a0340 Latest Latest
Warning

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

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

README

gogenutils

A collection of helper methods for writing go generate scripts.

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCase

func CamelCase(s string) string

CamelCase returns the camelCase version of a text string

func FieldName

func FieldName(s string) string

FieldName returns a go struct field name from a text string

func JSONFieldName

func JSONFieldName(s string) string

JSONFieldName returns the lowercase, underscore se

func PascalCase

func PascalCase(s string) string

PascalCase returns the PascalCase version of a text string

func PascalCaseToSnakeCase

func PascalCaseToSnakeCase(s string) string

PascalCaseToSnakeCase converts from PascalCase to snake_case

func SnakeCase

func SnakeCase(s string) string

SnakeCase returns the snake_case version of a text string

Types

This section is empty.

Jump to

Keyboard shortcuts

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