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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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