util

package
v0.0.0-...-4277497 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsoluteURL

func AbsoluteURL(base, path string) (string, error)

AbsoluteURL return absolute url

func BatchExecute

func BatchExecute(country, language, payload string) (string, error)

BatchExecute for PlayStoreUi

func BatchExecuteWithClient

func BatchExecuteWithClient(country, language, payload string, client *http.Client) (string, error)

BatchExecuteWithClient for PlayStoreUi with custom HTTP client

func DoRequest

func DoRequest(req *http.Request) ([]byte, error)

DoRequest by HTTP and read all

func DoRequestWithClient

func DoRequestWithClient(req *http.Request, client *http.Client) ([]byte, error)

DoRequestWithClient performs HTTP request with custom client

func ExtractInitData

func ExtractInitData(html []byte) map[string]string

ExtractInitData from Google HTML

func GetInitData

func GetInitData(req *http.Request) (map[string]string, error)

GetInitData from Google HTML

func GetInitDataWithClient

func GetInitDataWithClient(req *http.Request, client *http.Client) (map[string]string, error)

GetInitDataWithClient gets init data using custom HTTP client

func GetJSONArray

func GetJSONArray(data string, paths ...string) []gjson.Result

GetJSONArray by path

func GetJSONValue

func GetJSONValue(data string, paths ...string) string

GetJSONValue with multiple path

func HTMLToText

func HTMLToText(html string) string

HTMLToText return plain text from HTML

Types

This section is empty.

Jump to

Keyboard shortcuts

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