package
0.1.4
Repository: https://github.com/tucats/gopackages.git
Documentation: pkg.go.dev

# Functions

AcceptedMediaType validates the media type in the "Accept" header for this request against a list of valid media types.
Coerce returns the value after it has been converted to the type of the model value.
CoerceType will coerce an interface to a given type by name.
Decrypt decrypts a string using a password.
Encrypt encrypts a string using a password.
Format converts the given object into a string representation.
FormatUnquoted formats a value but does not put quotes on strings.
GetArray extracts a struct from an abstract interface.
GetBool takes a generic interface and returns the boolean value, using type coercion if needed.
GetFloat takes a generic interface and returns the float64 value, using type coercion if needed.
GetInt takes a generic interface and returns the integer value, using type coercion if needed.
GetInt64 takes a generic interface and returns the integer value, using type coercion if needed.
GetMap extracts a struct from an abstract interface.
GetString takes a generic interface and returns the string value, using type coercion if needed.
HasCapitalizedName returns true if the first rune/character of the string is considered a capital letter in Unicode.
Hash creates a hash string from a key string.
Hostname gets a short form of the host namme (i.e.
InList is a support function that checks to see if a string matches any of a list of other strings.
No description provided by the author
Normalize accepts two different values and promotes them to the most compatable format.
Session log is used to take a multi-line message for the server log, and insert prefixes on each line with the session number so the log lines will be tagged with the appropriate session identifier, and can be read with the server log query for a specific session.
Unquote removes quotation marks from a string if present.
ValidateParameters checks the parameters in a previously-parsed URL against a map describing the expected parameters and types.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
LineColumnFormat describes the format string for the portion of formatted messages that include a line and column designation.
LineFormat describes the format string for a message that contains just a line number.
No description provided by the author
No description provided by the author