package
5.0.0-20220302090640-ec71aef15e1c
Repository: https://github.com/masterhung0112/hk_server.git
Documentation: pkg.go.dev
# Functions
Append tokens to passed baseUrl as query params.
No description provided by the author
No description provided by the author
No description provided by the author
CopyDir will copy a directory and all contained files and directories.
CopyFile will copy a file from src path to dst path.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DON'T USE THIS Modify the level on the app logger.
DON'T USE THIS Modify the level on the app logger.
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
GetSubpathScriptHash computes the script-src addition required for the subpath script to bypass CSP protections.
Fetch JSON data from the notices server if skip is passed, does a fetch without touching the cache.
No description provided by the author
Validates Mobile Custom URL Scheme passed during OAuth or SAML.
Validates RedirectURL passed during OAuth or SAML.
Merge will return a new value of the same type as base and patch, recursively merging non-nil values from patch on top of base.
No description provided by the author
No description provided by the author
No description provided by the author
ProgressiveRetry executes a BackoffOperation and waits an increasing time before retrying the operation.
No description provided by the author
No description provided by the author
Random selection of text for post.
No description provided by the author
No description provided by the author
RemoveStringFromSlice removes the first occurrence of a from slice.
RemoveStringsFromSlice removes all occurrences of strings from slice.
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
StripMarkdown remove some markdown syntax.
No description provided by the author
this functions loads translations from filesystem if they are not loaded already and assigns english while loading server config.
UnzipToPath extracts a given zip archive into a given path.
UpdateAssetsSubpath rewrites assets in the /client directory to assume the application is hosted at the given subpath instead of at the root.
UpdateAssetsSubpathFromConfig uses UpdateAssetsSubpath and any path defined in the SiteURL.
UpdateAssetsSubpathInDir rewrites assets in the given directory to assume the application is hosted at the given subpath instead of at the root.
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
Lovely giberish for all to use.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Strings that should pass as acceptable emails.
Strings that should pass as acceptable team names.
Strings that should pass as acceptable posts.
No description provided by the author
# Structs
No description provided by the author
MergeConfig allows for optional merge customizations.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
StructFieldFilter defines a callback function used to decide if a patch value should be applied.