transcookie

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package transcookie just for caching google translation services' cookies

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrInvalidServiceURL service url is invalid
	ErrInvalidServiceURL = errors.New("invalid translate google service url")
)

Functions

func Get

func Get(serviceURL string) (http.Cookie, error)

Get gets cookie from defaultCookiesCache for example: Get("https://translate.google.com")

func Update

func Update(serviceURL string, sleep time.Duration) (http.Cookie, error)

Update updates defaultCookiesCache's cookie

Types

This section is empty.

Jump to

Keyboard shortcuts

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