Skip to content

xh-dev-go/xhUtils

Repository files navigation

xhUtils

install

go get github.com/xh-dev-go/xhUtils

Demo

Empty String

import fmt
fmt.Println(common.StringEmpty) // avoiding defining "" string

Simplified flag variable

strVar := flagString.New("string", "usage of string").BindCmd()
intVar := flagInt.New("int_variable", "usage of int").BindCmd()
flag.Parse()