package
0.0.0-20220416152547-811248409115
Repository: https://github.com/tfwio/srv.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Abs returns an absolute representation of path; Ignores errors.
AbsBase returns `filepath.Base(path)` after converting to absolute representation of path; Ignores errors.
BytesToBase64 gets base-64 StdEncoding.
CacheBytes Loads a local file in to `[]bytes`.
CacheFile Loads a local file in to `string`.
Cat - Concatenate a string by way of writing input to a buffer and converting returning its .WriteString() function.
CatArray - Concatenate a string, or empty string.
CatArrayPad - Concatenate a string were padding the buffer here with a single char.
CatPath concatenates a path-string.
CharIsNumber checks wether input string contains all digit characters.
CheckDateString checks the beginning of a file-name for an 8-digit date-string; I.E.: `YYYYMMDD`.
ConvertTransient What does this actually do?.
DirectoryExists checks if a given Directory exists.
FileExists checks if a given path or file exists.
FromBase64 gets base-64 StdEncoding; ignores error.
FromBase64e gets base-64 StdEncoding (with error).
FromUBase64 gets base-64 URLEncoding.
GetDirectory expects a file as input and returns its parent directory.
GetDirectoryE expects a file as input and returns its parent directory.
No description provided by the author
IIF returns a string depending on the boolean condition, onTrue or onFalse.
Insert inserts the value into the slice at the specified index, which must be in range.
No description provided by the author
MultiReplace converts whatever to whatever.
OSSlash converts all backslash to forward-slash (if OS is not windows).
PathExists checks if a given File or Directory exists.
Sha1String just gets SHA1 StdEncoding.
Space2Dash converts or replaces all spaces in a string with a small-dash.
StrInt64 string to int helper.
StripFileExtension ...yep.
StripFileExtensionC ...yep.
StrTransformLiteral takes a literal string stuff like `EOL` and asserts literal code(s) such as `\n` and takes a measure or two to clean up the string to something a bit more normative.
ToBase64 gets base-64 StdEncoding.
ToUBase64 gets base-64 URLEncoding.
Touch will create a file if it does not exist returns success.
Trim trims each text element in the input array.
TrimJoin trims each text element in the input array and `Join`s the result (using separator).
TrimUnixSlash trims left and right forward-slashes from input string.
TrimUnixSlashLeft trims leftmost forward-slash from input string.
TrimUnixSlashRight trims right forward-slash from input string.
UnixSlash converts all backslash to forward-slash.
Wrap wraps text with `wrap`, written for converting "v" to "/v/".
WrapLeft puts `wrap` at the beginning of the string if not already present.
Wrapper concatenates text and wraps it like `Wrap` does with `sep`-arator.
WrapperLeft concatenates text and wraps it like `Wrap` and pads it to the left with `sep`.
WrapperRight concatenates text and wraps it like `Wrap` and pads it to the right with `sep`.
WrapRight puts `wrap` at the end of the string if not already present.
WReap makes sure that each text node is trimmed of `separator` and also wraps text with the `separator`.
WReapLeft makes sure that each text node is trimmed of `separator` and also left-wraps text with the `separator`.
WReapRight makes sure that each text node is trimmed of `separator` and also right-wraps text with the `separator`.

# Structs

No description provided by the author