Documentation ¶
Overview ¶
ulib client unpack data
Example:
package main import ( "fmt" "github.com/3JoB/ulib/net/client" "github.com/go-resty/resty/v2" ) func main() { r, err := resty.New().Get("https://example.com/example.json") data := client.UnPackData(r.RawBody()).String() fmt.Println(data) }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnPackData ¶
Decompress the Body package, support gzip, br, zstd, deflate
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.