Documentation ¶ Index ¶ func Convert2Float32(str string, dv float32) float32 func Marshal(val any) (map[string]map[string]any, error) func ReadAsNestedMap[T Numeric](filePath string, separator rune, fn func(v string, dv T) T, dv T) (map[string]map[string]T, error) type Numeric Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Convert2Float32 ¶ func Convert2Float32(str string, dv float32) float32 func Marshal ¶ func Marshal(val any) (map[string]map[string]any, error) Marshal marshals the given val and returns the map that contains the fields. optional=another is not implemented, and it's hard to implement and not common used. func ReadAsNestedMap ¶ func ReadAsNestedMap[T Numeric](filePath string, separator rune, fn func(v string, dv T) T, dv T) (map[string]map[string]T, error) ReadAsNestedMap 读取CSV文件并返回嵌套的Map Types ¶ type Numeric ¶ type Numeric interface { int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 | float32 | float64 } Source Files ¶ View all Source files csv.go marshaler.go Click to show internal directories. Click to hide internal directories.