kestrelutils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	APOSTROPHE = "%27"
	SPACE      = "%20"
	SPACES     = regexp.MustCompile(` +`)
)

Functions

func CheckFile

func CheckFile(infile string)

func ConnectToDatabase

func ConnectToDatabase(user, pw string, test bool) *dbIO.DBIO

func CorrectSpaces

func CorrectSpaces(s string) string

func GetAbsPath

func GetAbsPath(f string) string

func GetLocation

func GetLocation() string

func GetLogger

func GetLogger() *log.Logger

func Getutils

func Getutils() string

func MergeResults

func MergeResults(infile, resfile, outfile string, col int, prepend bool, logger *log.Logger)

func PercentDecode

func PercentDecode(term string) string

func PercentEncode

func PercentEncode(term string) string

func RemoveKey

func RemoveKey(url string) string

func RemoveNonBreakingSpaces

func RemoveNonBreakingSpaces(s string) string

Types

type Configuration

type Configuration struct {
	Host     string
	Database string
	User     string
	Testdb   string
	Tables   string
	Test     bool
}

func SetConfiguration

func SetConfiguration(user string, test bool) Configuration

Jump to

Keyboard shortcuts

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