common

package
v0.0.0-...-a0f9f5f Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDirname

func CheckDirname(dirname string) error

func CheckFilename

func CheckFilename(filename string) error

func DumpVal

func DumpVal(val interface{})

func FormatFileSize

func FormatFileSize(fileSize uint64) (size string)

func FormatTimestamp

func FormatTimestamp(timestamp int64) string

func ProcessPageByList

func ProcessPageByList(page, pageSize, defaultPageSize int) (limit int, offset int)

处理列表分页

func SliceUniqueUint

func SliceUniqueUint(val *[]uint) []uint

func Struct2Map

func Struct2Map(target interface{}) (data map[string]interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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