Skip to content

lestoni/go-logtick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e8480af · Dec 15, 2018

History

2 Commits
Dec 15, 2018
Dec 15, 2018
Nov 22, 2018
Nov 22, 2018
Nov 22, 2018
Nov 22, 2018
Nov 22, 2018
Nov 22, 2018

Repository files navigation

logtick

GoDoc Go Report Card

Parse a git log -1 -p --stat --pretty=fuller .I Find it the log output simple and detailed enough.

Originally created for go-logtick-http

Install

  $ go get github.com/lestoni/go-logtick

Usage

  func main(){
    log, err := ioutil.ReadFile("testdata/git.log")
    if err != nil {
      panic(err)
    }

    content := fmt.Sprintf("%s", log)

    output, err := logtick.Parse(content)
    if err != nil {
      panic(err)
    }

    out, err := output.ToJSON()
    if err != nil {
      panic(err)
    }

    fmt.Printf("%+v", output)
  }

Testing

Test with Code Coverage

 $ go test -cover

About

git log output parser

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages