httputil

package
v0.0.1-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Timeout = 5

Timeout : API timeout time

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context,
	uri string,
	headers map[string]string,
) (*http.Response, error)

func GetJSON

func GetJSON(ctx context.Context, uri string, result interface{}) error

GetJSON : Get data

func GetWithRawBody

func GetWithRawBody(
	ctx context.Context,
	uri string,
	headers map[string]string,
	result *string,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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