helpers

package
v0.0.0-...-8291da2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBInit

func DBInit(datadir string)

DBInit - Load database, called initially

func Get

func Get(key string) []byte

Get value from db

func GetBufferType

func GetBufferType(buffer []byte) string

GetBufferType - Get type of buffer

func GetDataDir

func GetDataDir() string

GetDataDir - Get string of path that should be used to store data

func GetFileContentType

func GetFileContentType(out *os.File) string

GetFileContentType - returns file type

func Mkdir

func Mkdir(dirName string) error

Mkdir - make a directory, recursive

func PrintMemUsage

func PrintMemUsage()

PrintMemUsage - print memory usage to console

func Set

func Set(key string, value []byte)

Set value

func SetDataDir

func SetDataDir(newdatadir string)

SetDataDir - Set path for storing data

func StrCompare

func StrCompare(a, b string) float64

StrCompare - Compare similarity of 2 strings.

func Unzip

func Unzip(src, dest string) error

Unzip - read file and unzip it to somewhere.

Types

This section is empty.

Jump to

Keyboard shortcuts

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