Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToJSON ¶
Example ¶
package main import ( "strings" "github.com/frioux/leatherman/internal/tool/allpurpose/csv" ) func main() { r := strings.NewReader("foo,bar\n1,2\n2,3") csv.ToJSON(nil, r) }
Output: {"bar":"2","foo":"1"} {"bar":"3","foo":"2"}
func ToMarkdown ¶
Example ¶
package main import ( "strings" "github.com/frioux/leatherman/internal/tool/allpurpose/csv" ) func main() { r := strings.NewReader("foo,bar,baz\n1,2,3\n3,2,1") csv.ToMarkdown(nil, r) }
Output: foo | bar | baz --- | --- | --- 1 | 2 | 3 3 | 2 | 1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.