utils

package
v0.0.0-...-3376cbe Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppPath

func AppPath() string

func AppTempFile

func AppTempFile(elem ...string) string

func FileContents

func FileContents(filename string) []byte

func FileExists

func FileExists(files ...string) bool

func FileWriteContent

func FileWriteContent(filename string, data []byte) error

func FrpCloseRecover

func FrpCloseRecover(svr *client.Service)

func FrpTermSignal

func FrpTermSignal(svr *client.Service)

func HashFile

func HashFile(filename string) (string, error)

func HttpDelete

func HttpDelete(requestUrl string, requestBody []byte) (int, []byte, error)

func HttpGet

func HttpGet(requestUrl string, params ...url.Values) (int, []byte, error)

func HttpPost

func HttpPost(requestUrl string, requestBody []byte) (int, []byte, error)

func IWantUseHttpPort

func IWantUseHttpPort(port ...int) int

func IsIntranet

func IsIntranet(address string) (bool, error)

func StringToBytes

func StringToBytes(str string) []byte

func StringToInt

func StringToInt(str string) int

func ToJsonString

func ToJsonString(v any) string

func WaitInput

func WaitInput(tips ...string) string

func WaitInputExit

func WaitInputExit(tips ...string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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