Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 824 Bytes

README.md

File metadata and controls

49 lines (32 loc) · 824 Bytes

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.