client

package
v1.1.3-1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

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

func UnPackData(r *http.Response) *update

Decompress the Body package, support gzip, br, zstd, deflate

Types

This section is empty.

Jump to

Keyboard shortcuts

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