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: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMd5Hash

func GetMd5Hash(text string) string

func GetURLContent

func GetURLContent(url string) (string, error)

func Match

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

func MatchArr added in v0.5.7

func MatchArr(pattern, content string) ([]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