Categorygithub.com/theiatech/GoUtils
repository
0.0.0-20211023041927-8e59b5d0c871
Repository: https://github.com/theiatech/goutils.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

GoUtils

golang utils

Use FontColor

fmt.Println(FontColor.Green("hello GoUtils"))

Use HttpUtil

rsp := HttpUtil.Requests(HttpUtil.HttpRequestParams{
		Method: http.MethodPost,
		Url: "http://127.0.0.1:80",
		Headers: map[string]string{"Content-Type":"text/plain"},
		Body: []byte("a=1&b=2"),
		BasicAuth: struct {
			Username string
			Password string
		}{Username: "root", Password: "root"},
	})
fmt.Println(string(rsp.Body))