web

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTTPServer = &httpServer{}

Functions

func FormatAsDate

func FormatAsDate(t time.Time) string

格式化年月日

func FormatFileSize

func FormatFileSize(fileSize uint64) (size string)

字节的单位转换 保留两位小数

func GetDate

func GetDate() string

获取当前年月日

func GetServerInfo

func GetServerInfo() *info

func GetYear

func GetYear() string

获取年份

func Getavator

func Getavator() string

随机获取一个头像

Types

type MSG

type MSG map[string]interface{}

Jump to

Keyboard shortcuts

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