1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-10 07:42:27 +08:00

feat: add ReadCsvFile

This commit is contained in:
dudaodong
2023-04-25 11:28:43 +08:00
parent 11217a11c7
commit 2f51397d2c
3 changed files with 44 additions and 1 deletions

View File

@@ -274,3 +274,14 @@ func ExampleSha() {
// d22aba2a1b7a2e2f512756255cc1c3708905646920cb1eb95e45b531ba74774dbbb89baebf1f716220eb9cf4908f1cfc5b2a01267704d9a59f59d77cab609870
// <nil>
}
func ExampleReadCsvFile() {
content, err := ReadCsvFile("./testdata/test.csv")
fmt.Println(content)
fmt.Println(err)
// Output:
// [[Bob 12 male] [Duke 14 male] [Lucy 16 female]]
// <nil>
}