utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmptyString

func IsEmptyString(data string) bool

IsEmptyString is check parameter is empty

func ParseBody

func ParseBody(ctx context.Context, r *http.Request, data interface{}) error

ParseBody parse json-formatted request body into given struct.

func ParseBodyArray

func ParseBodyArray(ctx context.Context, r *http.Request, data interface{}) error

ParseBodyparse json-formatted request body into given struct.

func URLQuery

func URLQuery(q QueryURL) string

URLQuery is generate data to URL query string

Types

type QueryURL

type QueryURL map[string]interface{}

QueryURL is wrap data for query string

Jump to

Keyboard shortcuts

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