modulepackage
0.0.0-20190315143019-1ab48ff7769b
Repository: https://github.com/autom8ter/util.git
Documentation: pkg.go.dev
# README
Util
Various Golang functions that havent found there way into an isolated repository
Rules
- No init functions
- No custom types
- As few imports as possible
- No Environmental Variables or Config/Flag Variables
# Functions
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
No description provided by the author
No description provided by the author
consistentReadSync is the main functionality of ConsistentRead but introduces a sync callback that can be used by the tests to mutate the file from which the test data is being read.
No description provided by the author
No description provided by the author
DeleteWhiteSpace deletes all whitespaces from a string as defined by unicode.IsSpace(rune).
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
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
initConfig reads in config file and ENV variables if set.
No description provided by the author
StdCopy is a modified version of io.Copy.
IsPermanentHTTPHeader checks whether hdr belongs to the list of permenant request headers maintained by IANA.
IsReserved returns whether the key is reserved by gRPC.
No description provided by the author
No description provided by the author
Template reads a go template and writes it to dist given data.
Template reads a go template and writes it to dist given data.
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
NewStdWriter instantiates a new Writer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
outgoingHeaderMatcher transforms outgoing metadata into HTTP headers.
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
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
SanitizeApiPrefix forces prefix to be non-empty and end with a slash.
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
SignalRunner runs a runner function until an interrupt signal is received, at which point it will call stopper.
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
substring creates a substring of the given string.
No description provided by the author
ToPrettyJson encodes an item into a pretty (indented) JSON.
ToPrettyJsonString encodes an item into a pretty (indented) JSON string.
No description provided by the author
No description provided by the author
uuidv4 provides a safe and secure UUID v4 implementation.
No description provided by the author
No description provided by the author
No description provided by the author
WrapClient takes an http.Client and wraps its transport in the chain of tripperwares.
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
EnumFlag is a `flag.Value` for one-of-a-fixed-set string arguments.
EnumFlags is a `flag.Value` for one-of-a-fixed-set string arguments.
EnumFlagsCSV is a `flag.Value` for comma-separated EnumFlag arguments.
EnumFlagSet is a `flag.Value` for one-of-a-fixed-set string arguments.
EnumFlagSetCSV is a `flag.Value` for comma-separated EnumFlag arguments.
No description provided by the author
File is a `flag.Value` for file path arguments.
FilesFlag is a `flag.Value` for file path arguments.
No description provided by the author
Template is a `flag.Value` for `text.Template` arguments.
Templates is a `flag.Value` for `text.Template` arguments.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
Middleware is signature of all http server-side middleware.
No description provided by the author
No description provided by the author
RequestMiddleware is a function used to modify the incoming request of a reverse proxy from a client.
No description provided by the author
ResponseMiddleware is a function used to modify the response of a reverse proxy.
RoundTripperFunc wraps a func to make it into a http.RoundTripper.
StdType is the type of standard stream a writer can multiplex to.
TransportMiddleware is a function used to modify the http RoundTripper that is used by a reverse proxy.
Tripperware is a signature for all http client-side middleware.