Versions in this module Expand all Collapse all v0 v0.0.2 Apr 17, 2022 v0.0.1 Dec 27, 2020 Changes in this version + func CORSMiddleware(c *CORS, next http.Handler) http.Handler + func CORSMiddlewareAllInclusive(next http.Handler) http.Handler + func EnvOrAlternates(envVar string, alternates ...string) string + func FirstNonEmptyString(args ...string) string + func NonEmptyStrings(args ...string) (nonEmpties []string) + func RedirectAllTrafficTo(host string) http.Handler + func StatusOK(code int) bool + func ToURLValues(v interface{}) (url.Values, error) + func UniqStrings(strs ...string) []string + type CORS struct + AllowCredentials bool + Headers []string + Methods []string + Origins []string + func (c *CORS) ServeHTTP(rw http.ResponseWriter, req *http.Request) + type CodedError struct + func MakeCodedError(msg string, code int) *CodedError + func (cerr *CodedError) Code() int + func (cerr *CodedError) Error() string + type NullableFloat64 float64 + func (nf64 *NullableFloat64) UnmarshalJSON(b []byte) error + type NullableString string + func (ns *NullableString) UnmarshalJSON(b []byte) error + type NullableTime time.Time + func (nt *NullableTime) UnmarshalJSON(b []byte) error + type NumericBool bool + func (nb *NumericBool) UnmarshalJSON(blob []byte) error