utils

package
v0.0.0-...-28bcc08 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package utils 含有一些实用函数

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B2S

func B2S(b []byte) string

B2S convert byte slice to string.

func Get

func Get(addr string) (body []byte, err error)

Get web Content by using GET request.

func PostJSON

func PostJSON(addr string, postbody io.Reader) (body []byte, err error)

PostJSON to addr and get response body

Types

This section is empty.

Jump to

Keyboard shortcuts

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