helper

package
v0.0.0-...-c266f6d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalTimezone = "Asia/Shanghai"
	LayoutISO     = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func ClientIp

func ClientIp(r *http.Request) string

func CurrentTimeStr

func CurrentTimeStr() string

func LocalAddr

func LocalAddr() string

func LocalHostname

func LocalHostname() string

func Md5

func Md5(input string) string

func TimeToLocalStr

func TimeToLocalStr(t time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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