util

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NameFuncMap = func() template.FuncMap {
	m := sprig.TxtFuncMap()
	return m
}()

Functions

func GetURLContent

func GetURLContent(url string) (string, error)

func Match

func Match(pattern, content string) (string, error)

func MoveFile

func MoveFile(src, dst string) error

func MoveFileWindows

func MoveFileWindows(src, dst string) error

Types

type HttpRequest

type HttpRequest struct {
	URL          string
	Method       string
	Param        io.Reader
	RequestData  map[string]interface{}
	ResponseData interface{}
	Header       map[string]string
	ContentType  string
}

func (*HttpRequest) Send

func (this *HttpRequest) Send() error

Jump to

Keyboard shortcuts

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