google

package
v0.0.0-...-119bd8b Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Example (CreateUri)
uri := createUri(nil)
fmt.Printf("test: createUri(nil) -> %v\n", uri)

req, _ := http.NewRequest("", "https://www.google.com/search?q=test", nil)
uri = createUri(req.URL)
fmt.Printf("test: createUri(nil) -> %v\n", uri)

req, _ = http.NewRequest("", "proxy://www.google.com/search?q=test", nil)
uri = createUri(req.URL)
fmt.Printf("test: createUri(nil) -> %v\n", uri)
Output:

test: createUri(nil) -> https://www.google.com
test: createUri(nil) -> https://www.google.com/search?q=test
test: createUri(nil) -> https://www.google.com/search?q=test

Index

Examples

Constants

This section is empty.

Variables

View Source
var (
	Uri = pkgPath
)

Functions

func IsStarted

func IsStarted() bool
func Search[E runtime.ErrorHandler](ctx context.Context, uri *url.URL) ([]byte, *runtime.Status)

Types

This section is empty.

Jump to

Keyboard shortcuts

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