Categorygithub.com/billylkc/myutil
modulepackage
0.1.16
Repository: https://github.com/billylkc/myutil.git
Documentation: pkg.go.dev

# README

myutil

My go util

# Functions

BreakLongParagraph break lines in the paragraphs.
BreakLongStr adds linebreak to a long string with certain input line length also trim by total length at the end.
GetEnv gets the environment variable with the given name.
HandleCamalCase helps to split a string with camal case being sticked as a single word.
HandleDateArgs handles non flag input arguments mostly handle nrecords only, where n could be days, weeks, or months.
HandleMonthArgs handles months related arguments.
InterfaceSlice converts a list of struct to list of interface.
ParseDateInput parse the input for past n days, or actual day string in YYYY-MM-DD format result depends on freq, daily, monthly -> 2021-03-01.
ParseDateRange TBA.
PrettyPrint to print struct in a readable way.
PrintTable prints the table with interface.
Shell calls the shell command.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TrimStr trims long string to next n characters.