util

package
v0.0.0-...-9ff3565 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 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 DoRequest

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

DoRequest by HTTP and read all

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 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