name

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatFilename

func FormatFilename(filename string, style NamingStyle) string

Types

type NamingStyle

type NamingStyle = string
const (
	NamingLower NamingStyle = "lower"
	NamingCamel NamingStyle = "camel"
	NamingSnake NamingStyle = "snake"
)

func IsNamingValid

func IsNamingValid(namingStyle string) (NamingStyle, bool)

IsNamingValid validates whether the namingStyle is valid or not,return namingStyle and true if it is valid, or else return empty string and false, and it is a valid value even namingStyle is empty string

Jump to

Keyboard shortcuts

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