diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..dc744a3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: go +go: +- 1.8 +- tip +script: +- make lint +- make test +after_script: +- make cover diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..b4288df --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2017 Songmu + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..84cc5fc --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +test: deps + go test ./... + +deps: + go get -d -v -t ./... + go get github.com/golang/lint/golint + go get golang.org/x/tools/cmd/cover + go get github.com/mattn/goveralls + +lint: deps + go vet ./... + golint -set_exit_status ./... + +cover: deps + goveralls + +.PHONY: test deps lint cover diff --git a/README.md b/README.md new file mode 100644 index 0000000..6f6b781 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +axslogparser +======= + +[![Build Status](https://travis-ci.org/Songmu/axslogparser.png?branch=master)][travis] +[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license] +[![GoDoc](https://godoc.org/github.com/Songmu/axslogparser?status.svg)][godoc] + +[travis]: https://travis-ci.org/Songmu/axslogparser +[coveralls]: https://coveralls.io/r/Songmu/axslogparser?branch=master +[license]: https://github.com/Songmu/axslogparser/blob/master/LICENSE +[godoc]: https://godoc.org/github.com/Songmu/axslogparser + +## Description + +An accesslog parser supports apache log (common and combined) and ltsv access log. + +## Author + +[Songmu](https://github.com/Songmu)