Skip to content

Commit

Permalink
simple tomll linter util
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Muhlestein committed Apr 22, 2016
1 parent 8e6ab94 commit 56622b5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cmd/tomll/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package main

import (
"fmt"
"os"

"github.com/pelletier/go-toml"
)

func main() {
if len(os.Args) >= 2 {
for _, f := range os.Args[1:] {
m, e := toml.LoadFile(f)
if e != nil {
fmt.Println(e)
} else {
fmt.Print(m.ToString())
}
}
}
}

0 comments on commit 56622b5

Please sign in to comment.