strutil

package
v0.4.3-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcantatePaths

func ConcantatePaths(paths ...string) string

func CreateManyToManyName

func CreateManyToManyName(tableNameA, tableNameB string) string

func NormalizePath

func NormalizePath(path string) string

func RemoveQuotes

func RemoveQuotes(s, quote string) (string, bool)

func ToExportedGoName

func ToExportedGoName(name string) string

toExportedGoName converts a snake_case string to CamelCase and ensures it's exported.

func ToJSONTag

func ToJSONTag(name string) string

toJSONTag converts the column name to a JSON-friendly tag in snake_case.

func ToNotExported

func ToNotExported(word string) string

func ToPlural

func ToPlural(name string) string

func ToSingle

func ToSingle(name string) string

func TryUnquote

func TryUnquote(s string) string

func UnquoteString

func UnquoteString(s string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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