utils

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 3 Imported by: 4

README

readme.md

Documentation

Index

Constants

View Source
const (
	VAL_REQUIRED       = 1001
	VAL_STRING_TYPE    = 1002
	VAL_STRING_LEN     = 1003
	VAL_STRING_PATTERN = 1004
	VAL_INT_TYPE       = 1005
	VAL_INT_MIN        = 1006
	VAL_INT_MAX        = 1007
	VAL_INT_RANGE      = 1008
	VAL_BOOL_TYPE      = 1009

	RES_SERVER_ERROR         = 2001
	RES_SERIALIZATION_ERROR  = 2002
	RES_INVALID_JSON_PAYLOAD = 2003
	RES_VALIDATION           = 2004

	ERR_INVALID_LOG_LEVEL  = 3001
	ERR_INVALID_LOG_FORMAT = 3002
	ERR_PG_INIT            = 3003
	ERR_SQLITE_INIT        = 3004
)

Variables

This section is empty.

Functions

func B2S

func B2S(b []byte) string

func EncodeRequestId

func EncodeRequestId(requestId uint32, instanceId uint8) string

func S2B

func S2B(s string) (b []byte)

Types

This section is empty.

Directories

Path Synopsis
A wrapper to make map[string]any a little more type-safe
A wrapper to make map[string]any a little more type-safe

Jump to

Keyboard shortcuts

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