tkk

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: 9 Imported by: 0

Documentation

Overview

Package tkk gets google translate tkk

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrNotFound couldn't found tkk
	ErrNotFound = errors.New("couldn't found tkk from google translation url")
)

Functions

func Get

func Get() (string, error)

Get gets tkk

func Set

func Set(googleTransURL string)

Set sets google translation url

Types

type Cache

type Cache interface {
	Set(googleTransURL string)
	Get() (tkk string, err error)
}

Cache is responsible for getting google translte tkk

func NewCache

func NewCache(serviceURL string) Cache

NewCache initializes a cache

Jump to

Keyboard shortcuts

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