tools

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: GPL-3.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(s string) []byte

Bytes 内存地址转换string

func DecodeString

func DecodeString(s string) string

DecodeString 解码混淆字符串,兼容python算法

func DoRequestWithTimeout

func DoRequestWithTimeout(req *http.Request, timeo time.Duration) (int, []byte, map[string]string, error)

DoRequestWithTimeout 发起请求

func GetExecDir

func GetExecDir() string

GetExecDir get current file path

func IsExist

func IsExist(p string) bool

IsExist file is exist or not

func JoinPathFromHere

func JoinPathFromHere(path ...string) string

JoinPathFromHere 从程序执行目录开始拼接路径

func ReverseString

func ReverseString(s string) string

ReverseString ReverseString

func String

func String(b []byte) string

String 内存地址转换[]byte

func SwapCase

func SwapCase(s string) string

SwapCase swap char case

Types

This section is empty.

Jump to

Keyboard shortcuts

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