utils

package
v0.0.0-...-3d8f939 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes2String

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

Bytes2String see below

func FormValue

func FormValue(c echo.Context, k string) string

FormValue get value from http form

func String2Bytes

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

String2Bytes zero-coy, string类型转为[]byte 注意,这种做法下,一旦string变化,程序立马崩溃且不能recover 谨慎,黑科技!!除非性能瓶颈,否则请使用[]byte(s)

func Time2EnglishString

func Time2EnglishString(t time.Time) string

func Time2ReadableString

func Time2ReadableString(t time.Time) string

func Time2String

func Time2String(t time.Time) string

func ValidNameRune

func ValidNameRune(c rune) bool

ValidNameRune check a rune is valid for a name format

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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