package
0.0.75
Repository: https://github.com/shopmonkeyus/go-common.git
Documentation: pkg.go.dev

# Functions

CopyDir will copy all files recursively from src to dst.
CopyFile will copy src to dst.
CreateShutdownChannel returns a channel which can be used to block for a termination signal (SIGTERM, SIGINT, etc).
Exists returns true if the filename or directory specified by fn exists.
GetAPIURLFromJWT extracts the API URL from a JWT token.
No description provided by the author
GetFreePort asks the kernel for a free open port that is ready to use.
GzipFile compresses a file using gzip.
IsLocalhost returns true if the URL is localhost or 127.0.0.1 or 0.0.0.0.
IsRunningInsideDocker returns true if the process is running inside a docker container.
ListDir will return an array of files recursively walking into sub directories.
LocalIP will return the local ipaddress for the machine.
No description provided by the author
No description provided by the author
NewNDJSONDecoder returns a decoder which can be used to read JSON new line delimited files.
NewNDJSONEncoder will return a JSONEncoder which allows you to stream json as new line delimited JSON.
No description provided by the author
ProcessDirWithDecoder will process all the JSON files in directory and call the callback.
RecoverPanic recovers from a panic and logs the error along with the current goroutines.
No description provided by the author
Unzip a file to a directory.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
JSONEncoder is an encoder that will allow you to encode one or more objects as JSON newline delimited output.

# Type aliases

No description provided by the author
No description provided by the author