lcommon

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addslashes

func Addslashes(str string) string

Addslashes 函数返回在预定义字符之前添加反斜杠的字符串。 预定义字符是: 单引号(') 双引号(") 反斜杠(\)

func Domain

func Domain(r *ghttp.Request, https bool) string

Domain 获得当前站点地址

func Ext

func Ext(path string) string

Ext returns the real file name extension used by path. Deprecated

func FileMD5

func FileMD5(file *multipart.FileHeader) (md5Str string, err error)

FileMD5 FileMD5 Deprecated

func GetCurrentDirectory

func GetCurrentDirectory() (path string, err error)

GetCurrentDirectory 获取当前路径

func IsURL

func IsURL(str string) bool

IsURL 是否为 URL

func MD5

func MD5(str string) string

MD5 MD5 Deprecated

func PathExists

func PathExists(path string) (bool, error)

PathExists 文件(夹)路径是否存在

func SignEncode

func SignEncode(data, filter g.Map, passNull, urlencode bool) string

SignEncode Sign Encode

func Stripslashes

func Stripslashes(str string) string

Stripslashes 函数删除由 addslashes() 函数添加的反斜杠。

Types

This section is empty.

Jump to

Keyboard shortcuts

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