Documentation ¶
Overview ¶
Package utility is a package of collection of utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Utility ¶
type Utility struct { FmtProxy fmtproxy.Fmt OsProxy osproxy.Os StrconvProxy strconvproxy.Strconv }
Utility is a struct that implements UtilityInterface.
func New ¶
func New( fmtProxy fmtproxy.Fmt, osProxy osproxy.Os, strconvProxy strconvproxy.Strconv, ) *Utility
New is a constructor for Utility.
func (*Utility) CreateDirIfNotExist ¶
CreateDirIfNotExist creates a directory if it does not exist.
func (*Utility) GetLargerNumber ¶
GetLargerNumber gets the larger number between num and argNum.
func (*Utility) GetMaxConvertibleString ¶
GetMaxConvertibleString gets the maximum number from args and converts it to a string.
func (*Utility) PrintlnWithWriter ¶
PrintlnWithWriter prints any with a writer.
type UtilityInterface ¶
type UtilityInterface interface { PrintlnWithWriter(writer ioproxy.WriterInstanceInterface, a ...any) GetMaxConvertibleString(args []string, def string) string GetLargerNumber(num int, argNum string) int CreateDirIfNotExist(dirPath string) error }
UtilityInterface is an interface for Utility.
Click to show internal directories.
Click to hide internal directories.