textUtil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 8 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File2Array

func File2Array(fileName string) []string

read file to []string, each line as item

func File2Bools added in v0.1.0

func File2Bools(fileName string) map[string]bool

read file to map[string]bool, each line as item

func File2Map added in v0.0.8

func File2Map(fileName, sep string, override bool) (map[string]string, error)

read file to map[string]string, each line split by sep, first item as key and second item as value

func File2MapArray added in v0.0.15

func File2MapArray(fileName, sep string, skip *regexp.Regexp) ([]map[string]string, []string)

read file to []map[string]string

func File2MapBool added in v0.1.0

func File2MapBool(fileName, key, sep string, skip *regexp.Regexp) (map[string]bool, []string)

read file to map[string]bool

func File2MapMap added in v0.0.34

func File2MapMap(fileName, key, sep string, skip *regexp.Regexp) (map[string]map[string]string, []string)

read file to map[string]map[string]string

func File2MapOrder added in v0.0.16

func File2MapOrder(fileName, sep string, override bool) (map[string]string, []string, error)

read file to map[string]string and keys array, each line split by sep, first item as key and second item as value

func File2Slice added in v0.0.21

func File2Slice(fileName, sep string) [][]string

read file to [][]string

func Files2Map added in v0.0.30

func Files2Map(fileNames, sep string, override bool) (db map[string]string, err error)

read two column files to map[string]string

func Files2MapArray added in v0.0.15

func Files2MapArray(fileNames []string, sep string, skip *regexp.Regexp) (Data []map[string]string, Title []string)

read files to []map[string]string

func Gz2MapArray added in v0.0.42

func Gz2MapArray(fileName, sep string, skip *regexp.Regexp) ([]map[string]string, []string)

read gz file to []map[string]string

func Gz2Slice added in v0.0.43

func Gz2Slice(fileName, sep string) [][]string

read gz file to []map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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