utils

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_RETRY_TIMES = 3

Variables

This section is empty.

Functions

func Decode added in v1.0.8

func Decode(data []byte, encode string) (string, error)

func DecodeBig5 added in v1.0.8

func DecodeBig5(data []byte) (string, error)

func DecodeCP949 added in v1.0.8

func DecodeCP949(data []byte) (string, error)

func HTTPGet

func HTTPGet(url string, rsp interface{}) error

func HTTPPost

func HTTPPost(url string, req, rsp interface{}) error

func HTTPRequest

func HTTPRequest(url string, method string, req, rsp interface{}) error

Types

type CommonReq

type CommonReq struct {
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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