Discover Packages
github.com/finishy1995/blogexample
csvLoader
package
Version:
v0.0.0-...-9006291
Opens a new window with list of versions in this module.
Published: Jan 10, 2022
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
var (
ErrInvalidInputStruct = errors .New ("invalid data input struct, make sure interface{} is *struct")
ErrInvalidDataSource = errors .New ("invalid data source, please check csv data")
ErrUnsupportedDataType = errors .New ("unsupported data type")
)
func MustLoad(file string , v interface{}) map[string ]interface{}
MustLoad 必须加载成功数据才能启动
FieldKind 数据类型。 注:为什么不直接用 reflect.Kind, 因为不是所有类型都支持转化,不支持的自动转变为 Invalid
const (
Invalid FieldKind = iota
Bool
Int
Int8
Int16
Int32
Int64
Uint
Uint8
Uint16
Uint32
Uint64
Float32
Float64
Map
Slice
String
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.