gocsv

package
v0.0.0-...-445d29d Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// 生成csv
	MarshalBytes  = gocsv.MarshalBytes
	MarshalString = gocsv.MarshalString
)

Functions

func MarshalFile

func MarshalFile(name string, in any) error

MarshalFile 写csv文件

func SetCSVReader

func SetCSVReader(comma rune)

SetCSVReader 改变全局reader的字段分隔符,默认是逗号,

func UnmarshalFile

func UnmarshalFile(name string, out any) error

UnmarshalFile 读取csv文件 可以使用结构体标签csv,与文件第一行对应

Types

This section is empty.

Jump to

Keyboard shortcuts

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