utils

package module
v0.0.0-...-003bbba Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: MIT Imports: 6 Imported by: 0

README

go-utils

reusable code for go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequestsFailed = errors.New("request not ok")

	ErrInvalidSeed = errors.New("seed is invalid")
)

Functions

func ErrFatal

func ErrFatal(err error)

func ErrMsg

func ErrMsg(err error)

func ErrPanic

func ErrPanic(err error)

func Exists

func Exists(path string) bool

func GetTsUrls

func GetTsUrls(url string, ro *grequests.RequestOptions) []string

Types

type TrieNode

type TrieNode struct {
	// contains filtered or unexported fields
}

type TrieRoot

type TrieRoot TrieNode

func (*TrieRoot) Delete

func (t *TrieRoot) Delete(s string)

func (*TrieRoot) HasPrefix

func (t *TrieRoot) HasPrefix(s string) bool

func (*TrieRoot) HasWord

func (t *TrieRoot) HasWord(s string) bool

func (*TrieRoot) Init

func (t *TrieRoot) Init()

func (*TrieRoot) Insert

func (t *TrieRoot) Insert(s string)

Jump to

Keyboard shortcuts

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