# Packages
No description provided by the author
Package csv reads and writes comma-separated values (CSV) files.
No description provided by the author
Package json implements encoding and decoding of JSON as defined in RFC 7159.
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
ArgsErrMsg takes args and makes an error message.
ArrContains returns true if array of strings contains.
ArrI returns an array of interface.
ArrMapInt create a map from an array of integers.
ArrMapString create a map from an array of strings.
ArrStr returns an array of strings.
AsMap converts a map to a map via cast.
AssertNoError asserts there is no error an logs it if there is.
Bool returns a pointer to the bool value passed in.
ChunkBy seperates into chunks.
CliProcess processes the cli objects.
CloneValue clones a pointer to another.
No description provided by the author
CompareVersions uses integers for each part to compare when comparing strings, 'v0.0.40' > 'v0.0.5' = False when it should be True.
Debug : print text in debug level.
DebugLow : print text in debug low level.
Decrypt from base64 to decrypted string.
DecryptInByte some data, not friendly over the wire.
Deindent removes any common leading whitespace from every line in text.
No description provided by the author
Encrypt string to base64 crypto using AES the key should be 16, 24 or 32 byte.
EncryptInBytes some data, not friendly over the wire.
Err : print text in error level.
ErrContains returns true if the sub-tring is found in error string.
ErrJSON returns to the echo.Context as JSON formatted.
ErrMsg returns a simple error message.
ErrMsgDebug returns a debug error message.
ErrMsgSimple returns a simpler error message.
Error returns stacktrace error with message.
ErrorText returns the error text if error is not nul.
ExecuteTemplate executes the templates passed.
No description provided by the author
F : fmt.Sprintf.
os.Getenv with a default value.
GetLogLevel gets the g log level.
GetMachineProcStats returns the machine performance metrics.
GetPort asks the kernel for a free open port that is ready to use.
No description provided by the author
the SHA-1 hash of the very first commit in a Git repository.
the root folder of a Git repository.
GetRunningGoRoutines returns the stack of all running goroutines.
GetType : return the type of an interface.
Hash hashes a password.
HasPrefix returns true if `item` has prefix of a value in `potPrefixes`.
In returns true if `item` matches a value in `potMatches`.
Info : print text in info level.
Int returns a pointer to the int value passed in.
Int64 returns a pointer to the int64 value passed in.
IsDebug returns true is debug is low.
IsDebugLow returns true is debug is low.
No description provided by the author
IsNil properly returns true for map or array nil values have encountered where map[string]interface {}(nil) != nil after unmarshal.
IsPointer returns `true` is obj is a pointer.
IsSlice returns `true` is obj is a slice.
IsTrace returns true is debug is trace.
JSONConvert converts from an interface to another via JSON.
JSONMarshal does not escape html as the original marshaller does, which escapes <, >, & etc.
JSONScanner scans value into Jsonb, implements sql.Scanner interface.
JSONUnmarshal.
JSONUnmarshalToMap.
JSONValuer return json value, implement driver.Valuer interface.
KVArrToMap parse a Key-Value array in the form of `"Prop1=Value1", "Prop2=Value2", ...` and return a map.
ListDir lists the file in given directory path recursively.
ListDirRecursive lists the file in given directory path recursively.
Log : print text.
LogC : print text in specified color.
LogError handles logging of an error, useful for reporting.
LogFatal handles logging of an error and exits, useful for reporting.
M : return map[string]interface from args.
MapKeys returns the keys of a map.
MapToKVArr transforms a map into a key-value array such as: `"Prop1=Value1", "Prop2=Value2", ...`.
Marshal marshals an interface into json.
MarshalMap marshals a map into json.
Matches returns potential regex matches.
MatchesGroup returns an array of a group value index.
No description provided by the author
MJ returns the JSON string of a map.
Must panics on error.
NewContext creates a new context.
NewError returns stacktrace error with message.
NewHTTPError creates a new HTTPError instance.
NewLogHook return a new log hook.
No description provided by the author
No description provided by the author
NewTsID creates a new timestamp ID.
Now : Get unix epoch time in milli.
NowFileStr : Get millisecond time in file string format.
P prints the value of object.
PathExists returns true if path exists.
Peek allows peeking without advancing the reader.
PP prints the Pretty Printed JSON struct.
Pretty returns the Pretty Printed JSON struct string.
No description provided by the author
PrintFatal prints the fatal error message.
PrintRows prints the rows of object.
PrintT prints the type of object.
R : Replacer R("File {file} had error {error}", "file", file, "error", err).
RandInt returns a random positive number up to max.
RandInt64 returns a random positive number up to max.
RandString returns a random string of len n with the provided char set charset can be `AlphaRunes`, `AlphaRunesLower`, `AlphaRunesUpper` or `AplhanumericRunes`.
RandSuffix returns a random AplhanumericRunes suffix of `n` length.
ReplaceNonWord replaces characters not: [^a-zA-Z0-9_].
Rm is like R, for replacing with a map.
SendMail sends an email to the specific email address https://godoc.org/gopkg.in/gomail.v2#example-package.
SentryClear clears the events.
SentryFlush submit the events to sentry server.
No description provided by the author
SetLogHook sets a log hook.
SetLogLevel sets the g log level.
SetZeroLogHook sets a zero log hook.
SetZeroLogLevel sets the zero log level.
String returns a pointer to the string value passed in.
StructFields returns the fields of a struct.
StructFieldsMapToKey returns a map of fields name to key.
Tee prints stream of text of reader.
Time returns a pointer to the time value passed in.
TimeColored returns the time colored.
TokenizeWithMapIDs map of char index to line-column ID.
ToMap convert an interface to a map via JSON.
ToMapString returns the value as a Map of strings.
Trace : print text in trace level.
UInt returns a pointer to the uint value passed in.
UInt64 returns a pointer to the uint64 value passed in.
Unmarshal unmarshals into an objPtr.
UnmarshalArray unmarshals into a array of interface.
UnmarshalMap unmarshals into a map of interface.
UnmarshalYAML unmarshals into an objPtr.
UnmarshalMap unmarshals into a map of interface.
UpdatePublicIP updates the public IP value.
UserHomeDir returns the home directory of the running user.
VerifyHash verifies the hash.
Warn : print text in warning level.
No description provided by the author
# Constants
AlphaRunes are alphabetic chars.
AlphaRunesLower are lowercase alphabetic chars.
AlphaRunesUpper are uppercase alphabetic chars.
AplhanumericRunes are alphanumeric chars.
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
No description provided by the author
No description provided by the author
DebugLevel defines debug log level.
No description provided by the author
LowDebugLevel defines low debug log level.
NormalLevel defines normal log level.
NumericRunes are numeric chars.
No description provided by the author
No description provided by the author
TokenRunes are alphanumeric+ chars for tokens.
TraceLevel defines trace log level.
WarnLevel defines warning log level.
# Variables
AlertEmail is the email address to send errors to.
No description provided by the author
CallerLevel is the stack caller information level.
CliArr is the array of CliSC.
No description provided by the author
DisableColor disables color.
ErrorIf allows use of `ErrorIf(err)` without the `if err != nil `.
LogHooks are log hooks.
LogLevel is the log level.
PublicIP is the public IP.
No description provided by the author
No description provided by the author
No description provided by the author
SMTPPass is user password.
SMTPPort is email SMTP server port.
SMTPServer is email SMTP server host.
SMTPUser is SMTP user name.
ZLogErr is the error/debug logger.
ZLogOut is the non-error/normal logger.
# Structs
CliSC represents a CLI subcommand.
Context is to manage context.
ErrorGroup represents a group of errors.
ErrType is an error with details.
FileItem represents a file or a directory.
Flag represents a CLI Flag.
No description provided by the author
LogHook is a hook to be perform at the specified level.
No description provided by the author
Match is a regex match.
A PipeReader is the read half of a pipe.
Position represents the line and column number of a token in the original text.
No description provided by the author
No description provided by the author
No description provided by the author
SizedWaitGroup with separate wait groups for read & write.
StructField is a field of a struct.
No description provided by the author
Token represents a group of characters in a tokenized text.
TokenBody represents a collection of tokens and their base parenthesis level.
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
Level is the log level.
No description provided by the author
No description provided by the author
TokenGroups represents a slice of Tokens.
Tokens represents a slice of Token.