utilx

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRawResponse

func GetRawResponse(url string) (*http.Response, error)

func ParseTemplate

func ParseTemplate(data interface{}, tplT []byte) ([]byte, error)

ParseTemplate template

func PathExists

func PathExists(path string) (bool, error)

func RegisterFuncMap

func RegisterFuncMap() template.FuncMap

func RegisterTxtFuncMap

func RegisterTxtFuncMap() template.FuncMap

func Untargz

func Untargz(archive, dest string) error

Untargz 解压 tar.gz @archive : the compress file's path , such as - "./test.tar.gz" @dest : the file Untar dest, such as "./ttt", and you will get fold named "test" under the ttt

Types

This section is empty.

Jump to

Keyboard shortcuts

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