lang

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNewNodeName added in v0.7.2

func GenerateNewNodeName(role string, idx int) string

generate to a new node name

func GenerateNewRandomString added in v0.7.2

func GenerateNewRandomString(n int) string

generate to a random string

func GetNodeNameIndex added in v0.7.2

func GetNodeNameIndex(nodeName string) int

get a idex of node name

func GetNowUTC added in v0.7.2

func GetNowUTC() string

get a now string

func GetOnlyLettersAndNumbers added in v0.7.2

func GetOnlyLettersAndNumbers(name string) string

if it's not alpabet & number then replace to ""

func NVL

func NVL(str string, def string) string

NVL is null value logic

func ReplaceAll added in v0.7.2

func ReplaceAll(source string, olds []string, new string) string

replace all

func ToPrettyJSON added in v0.7.2

func ToPrettyJSON(data []byte) []byte

func ToTemplateBytes added in v0.7.2

func ToTemplateBytes(tpl string, todo interface{}) ([]byte, error)

func VerifyCIDR added in v0.7.2

func VerifyCIDR(name string, val string) error

verify CIDR

func VerifyClusterName added in v0.7.2

func VerifyClusterName(name string) error

verify cluster name

Types

This section is empty.

Jump to

Keyboard shortcuts

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