Categorygithub.com/BakedSoftware/go-parameters
modulepackage
1.1.0
Repository: https://github.com/bakedsoftware/go-parameters.git
Documentation: pkg.go.dev

# README

Build Status

# Functions

CamelToSnakeCase converts CamelCase to snake_case Consecutive capital letters will be treated as one word: HTML -> html.
CORSHeaders adds cross origin resource sharing headers to a response.
EnableGZIP will attempt to compress the response if the client has passed a header value for Accept-Encoding which allows gzip.
GeneralJSONRequest calls the default wrappers for a json response: EnableGZIP, JSONResp, LogRequest, CORSHeaders.
GeneralResponse calls the default wrappers: EnableGZIP, LogRequest, CORSHeaders.
No description provided by the author
JSONResp will set the content-type to application/json.
MakeFirstUpperCase upper cases the first letter of the string.
No description provided by the author
No description provided by the author
No description provided by the author
SendCORS sends a cross origin resource sharing header only.
SnakeToCamelCase converts snake_case to CamelCase.
UniqueUint64 removes duplicates from uint64 arrays.

# Constants

No description provided by the author
DateTime is not recommended, rather use time.RFC3339.
HTMLDateTimeLocal is the format used by the input type datetime-local.
No description provided by the author

# Variables

CustomTypeSetter is used when Imbue is called on an object to handle unknown types.
FilteredKeys is a lower case array of keys to filter when logging.
KnownAbbreviations contains lower case versions of abbreviations to match.

# Structs

No description provided by the author

# Type aliases

No description provided by the author