util

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendPutContent

func AppendPutContent(filename string, data any)

func DirExistOrCreate

func DirExistOrCreate(dirPath string) bool

func FileGetContents

func FileGetContents(filename string) ([]byte, error)

func FileNameWithoutExtension

func FileNameWithoutExtension(fileName string) string

func FilePutContents

func FilePutContents(filename string, data any, isAppend ...bool) error

FilePutContents file_put_contents

func GetStoragePath

func GetStoragePath(filename string) string

func IsExist

func IsExist(path string) bool

func IsExistOrCreate

func IsExistOrCreate(path string, init string) bool

func Put

func Put(data []byte, to string) (err error)

Put 将数据存入文件

func PutContent

func PutContent(filename string, data any)

func SetBasePath

func SetBasePath(path string)

func StorageGet

func StorageGet(filename string) string

func StoragePut

func StoragePut(filename string, data any, append bool) error

func UrlDecode

func UrlDecode(s string) string

func UrlEncode

func UrlEncode(s string) string

Types

This section is empty.

Directories

Path Synopsis
Package str 字符串辅助方法
Package str 字符串辅助方法

Jump to

Keyboard shortcuts

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