utils

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const FILE_PLACEHOLDER = "FilePlaceholder"
View Source
const QUOTE = `["']`
View Source
const ROW_SEPARATOR_PLACEHOLDER = "RowSeparatorPlaceholder"
View Source
const WHITESPACE = `\s+`

Variables

This section is empty.

Functions

func BoolToInt

func BoolToInt(b bool) int

func BoolToPtr

func BoolToPtr(b bool) *bool

func GetFilePaths

func GetFilePaths(query string) ([]string, error)

func GetRowSeparator

func GetRowSeparator(query string) string

func IsImportQuery

func IsImportQuery(query string) bool

func NamedValuesToValues

func NamedValuesToValues(namedValues []driver.NamedValue) ([]driver.Value, error)

func OpenFile

func OpenFile(path string) (*os.File, error)

func ParseRange

func ParseRange(hostRangeRegex *regexp.Regexp, host string) ([]string, error)

func ResolveHosts

func ResolveHosts(h string) ([]string, error)

func ShuffleHosts

func ShuffleHosts(hosts []string)

func UpdateImportQuery

func UpdateImportQuery(query string, host string, port int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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