Go library for parsing HTTP request header "Accept-Language".
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
debian
python
.gitignore
.travis.yml
AUTHORS
LICENSE
README.md
acceptlanguageparser.go
acceptlanguageparser_test.go
doc.go

README.md

goacceptlanguageparser

Go library for parsing HTTP request header "Accept-Language".

Installation

$ go get github.com/strukturag/goacceptlanguageparser

Run Python example

$ python python/acceptlanguageparser.py

Run unit tests

$ go test -v

Run benchmarks

$ go test -cpuprofile=/tmp/cpu.out -bench .

View cpu profile

$ go tool pprof --text goacceptlanguageparser.test /tmp/cpu.out

Replace --text with --callgrind or to create a callgrind format file.

Contributing

  1. "Fork".
  2. Make a feature branch.
  3. Make changes.
  4. Do your commits (run go fmt before commit).
  5. Send "pull request".

License

goacceptlanguageparser uses a BSD-style license, see our LICENSE file.