utility

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

MapConfig is map for config object

View Source
var MutexMapConfig sync.RWMutex

MutexMapConfig is mutex lock for MapConfig

Functions

func GetAppDir

func GetAppDir() string

GetAppDir is get current app directory

func GetConfig

func GetConfig(name string) (*jsons.JSONObject, error)

GetConfig is get config json object

func MimeType

func MimeType(txtExt string) (string, error)

MimeType is set header type for response

func Minify

func Minify(exttype string, buffer []byte) ([]byte, error)

Minify is compress code

func NumberByteToMb

func NumberByteToMb(b uint64) uint64

NumberByteToMb is number byte to mb

func RandString

func RandString(n int, level int) string

RandString is random string of level

Types

This section is empty.

Jump to

Keyboard shortcuts

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