Documentation
¶
Index ¶
- func EncodeJSONResponse(ctx context.Context, i interface{}, status *int, w http.ResponseWriter) error
- func FromBase64(base64string string) ([]byte, error)
- func FromTime(t time.Time) string
- func GetDefaultTimeZone() string
- func IgnoreErrorIfContains(ctx context.Context, err error, match string, warningMsg string) error
- func IgnoreErrorIfOutputContains(ctx context.Context, err error, output string, match string, warningMsg string) error
- func InspectStruct(ctx context.Context, v interface{}, level int)
- func InspectStructV(ctx context.Context, val reflect.Value, level int)
- func Quiet() func()
- func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error)
- func StructFromMap(ctx context.Context, v interface{}, params url.Values) interface{}
- func ToBase64(b []byte) string
- func ToTime(str string) (time.Time, error)
- type Error
- type Route
- type Routes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeJSONResponse ¶
func EncodeJSONResponse(ctx context.Context, i interface{}, status *int, w http.ResponseWriter) error
EncodeJSONResponse uses the json encoder to write an interface to the http response with an optional status code
func FromBase64 ¶
func GetDefaultTimeZone ¶ added in v0.1.2
func GetDefaultTimeZone() string
func IgnoreErrorIfContains ¶
func InspectStruct ¶
func ReadFormFileToTempFile ¶
ReadFormFileToTempFile reads file data from a request form and writes it to a temporary file
func StructFromMap ¶
StructFromMap -
creates a newStruct to match type of v loops through the map[key]value matching newStruct.Field=key by name, and setting newStruct.Field=value
Types ¶
Click to show internal directories.
Click to hide internal directories.