utils

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomString

func GenerateRandomString(length int) string

func IsAllowedFileType

func IsAllowedFileType(fileType string, w http.ResponseWriter) bool

func JsonReaderFactory added in v1.0.2

func JsonReaderFactory(in interface{}) (io.Reader, error)

func RenderError

func RenderError(w http.ResponseWriter, err error, statusCode int)

func RenderIfError

func RenderIfError(err error, w http.ResponseWriter, statusCode int) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL