Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToJSON ¶
Example ¶
package main import ( "fmt" "os" "strings" "github.com/frioux/leatherman/internal/tool/allpurpose/toml" ) func main() { r := strings.NewReader("foo = \"bar\"\n") err := toml.ToJSON(nil, r) if err != nil { fmt.Fprintf(os.Stderr, "Couldn't ToJSON: %s\n", err) os.Exit(1) } }
Output: {"foo":"bar"}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.