utils

package
v0.0.0-...-f0901d5 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayContains

func ArrayContains(array interface{}, contains interface{}, kind reflect.Kind) (has bool, err error)

func GetFieldValue

func GetFieldValue(s interface{}, fieldName string) interface{}

func GetJsonBody

func GetJsonBody(r *http.Request) (map[string]interface{}, error)

func GetRecordColumns

func GetRecordColumns(record interface{}) (columns []string)

func GetRequestData

func GetRequestData(keys []string, r *http.Request) (data map[string]interface{}, errRes *components.ApiResponse)

func ParseByteArray

func ParseByteArray(data *[]byte, convertTo reflect.Kind) interface{}

func QueryHasParams

func QueryHasParams(requiredParams []string, params url.Values) []string

func RequestHasParams

func RequestHasParams(requiredParams []string, r *http.Request) []string

func ScanRow

func ScanRow(row *sql.Row, columns []string) (results map[string]*[]byte, err error)

func ScanRows

func ScanRows(columns []string, rows *sql.Rows) (results map[string]*[]byte)

func SetData

func SetData(record interface{}, data map[string]*[]byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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