util

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMd5Hash added in v0.3.0

func GetMd5Hash(text string) string

func GetURLContent

func GetURLContent(url string) (string, error)

func Match

func Match(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