csvconfig

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetString

func GetString(table string, queryField string, val string, field string) string

func Init

func Init(pathpre, suffix string)

初始化参数

func Ints16

func Ints16(a []int16)

Ints32 sorts a slice of int16 in increasing order.

func Ints32

func Ints32(a []int32)

Ints32 sorts a slice of int32 in increasing order.

func Ints64

func Ints64(a []int64)

Ints64 sorts a slice of int64 in increasing order.

func Ints8

func Ints8(a []int8)

Ints8 sorts a slice of int8 in increasing order.

func Load

func Load(_table_list []string) error

加载所有配置文件,如果已经加载则覆盖

Types

type Float32Slice

type Float32Slice []float32

Float32Slice attaches the methods of Interface to []float32, sorting in increasing order.

func (Float32Slice) Len

func (p Float32Slice) Len() int

func (Float32Slice) Less

func (p Float32Slice) Less(i, j int) bool

func (Float32Slice) Sort

func (p Float32Slice) Sort()

Sort is a convenience method.

func (Float32Slice) Swap

func (p Float32Slice) Swap(i, j int)

type Float64Slice

type Float64Slice []float64

Float64Slice attaches the methods of Interface to []float64, sorting in increasing order.

func (Float64Slice) Len

func (p Float64Slice) Len() int

func (Float64Slice) Less

func (p Float64Slice) Less(i, j int) bool

func (Float64Slice) Sort

func (p Float64Slice) Sort()

Sort is a convenience method.

func (Float64Slice) Swap

func (p Float64Slice) Swap(i, j int)

type Int16Slice

type Int16Slice []int16

Int16Slice attaches the methods of Interface to []int16, sorting in increasing order.

func (Int16Slice) Len

func (p Int16Slice) Len() int

func (Int16Slice) Less

func (p Int16Slice) Less(i, j int) bool

func (Int16Slice) Sort

func (p Int16Slice) Sort()

Sort is a convenience method.

func (Int16Slice) Swap

func (p Int16Slice) Swap(i, j int)

type Int32Slice

type Int32Slice []int32

Int32Slice attaches the methods of Interface to []int32, sorting in increasing order.

func (Int32Slice) Len

func (p Int32Slice) Len() int

func (Int32Slice) Less

func (p Int32Slice) Less(i, j int) bool

func (Int32Slice) Sort

func (p Int32Slice) Sort()

Sort is a convenience method.

func (Int32Slice) Swap

func (p Int32Slice) Swap(i, j int)

type Int64Slice

type Int64Slice []int64

Int64Slice attaches the methods of Interface to []int64, sorting in increasing order.

func (Int64Slice) Len

func (p Int64Slice) Len() int

func (Int64Slice) Less

func (p Int64Slice) Less(i, j int) bool

func (Int64Slice) Sort

func (p Int64Slice) Sort()

Sort is a convenience method.

func (Int64Slice) Swap

func (p Int64Slice) Swap(i, j int)

type Int8Slice

type Int8Slice []int8

Int8Slice attaches the methods of Interface to []int8, sorting in increasing order.

func (Int8Slice) Len

func (p Int8Slice) Len() int

func (Int8Slice) Less

func (p Int8Slice) Less(i, j int) bool

func (Int8Slice) Sort

func (p Int8Slice) Sort()

Sort is a convenience method.

func (Int8Slice) Swap

func (p Int8Slice) Swap(i, j int)

type Query

type Query struct {
	Key   string
	Value string
}

type Record

type Record struct {
	Fields map[string]string
}

func GetAll

func GetAll(tableName string) []*Record

func GetLine

func GetLine(table string, querys []*Query) *Record

func GetLines

func GetLines(table string, querys []*Query) []*Record

type Table

type Table struct {
	Records []*Record
}

Jump to

Keyboard shortcuts

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