<commit_before># params 

Type|Badge
----------
**Documentation:** | [![GoDoc](https://godoc.org/github.com/cogger/params?status.png)](http://godoc.org/github.com/cogger/params)  
**Build Status:** | [![Build Status](https://travis-ci.org/cogger/params.svg?branch=master)](https://travis-ci.org/cogger/params)  
**Test Coverage:** | [![Coverage Status](https://coveralls.io/repos/cogger/params/badge.svg?branch=master)](https://coveralls.io/r/cogger/params?branch=master)  
**License:**       [![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)


params addes generic way to get params associated with a request

## Usage
~~~ go
// main.go
package main

import (
	"net/http"
	"log"
	"github.com/cogger/cogger"
	"github.com/cogger/params"
	"github.com/cogger/params/gorilla"
	"golang.org/x/net/context"
	"github.com/gorilla/mux"
)

func foo(ctx context.Context, w http.ResponseWriter, r *http.Request) int{
	key := params.Get(ctx, "key")
	log.Println(key)
	return http.StatusOK
}

func main() {
	fooHandler := cogger.NewHandler()
	fooHandler.AddContext(params.Add(gorilla.Mapper))
	fooHandler.SetTimeout(3 * time.Second)<commit_msg>updated readme to hold a license badge<commit_after># params 

**Documentation:** [![GoDoc](https://godoc.org/github.com/cogger/params?status.png)](http://godoc.org/github.com/cogger/params)  
**Build Status:** [![Build Status](https://travis-ci.org/cogger/params.svg?branch=master)](https://travis-ci.org/cogger/params)  
**Test Coverage:** [![Coverage Status](https://coveralls.io/repos/cogger/params/badge.svg?branch=master)](https://coveralls.io/r/cogger/params?branch=master)  
**License:**       [![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)


params addes generic way to get params associated with a request

## Usage
~~~ go
// main.go
package main

import (
	"net/http"
	"log"
	"github.com/cogger/cogger"
	"github.com/cogger/params"
	"github.com/cogger/params/gorilla"
	"golang.org/x/net/context"
	"github.com/gorilla/mux"
)

func foo(ctx context.Context, w http.ResponseWriter, r *http.Request) int{
	key := params.Get(ctx, "key")
	log.Println(key)
	return http.StatusOK
}

func main() {
	fooHandler := cogger.NewHandler()
	fooHandler.AddContext(params.Add(gorilla.Mapper))
	fooHandler.SetTimeout(3 * time.Second)
{'fraction_non_alphanumeric': 0.19031578947368422, 'fraction_numerical': 0.0025263157894736842, 'mean_word_length': 4.823529411764706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6377662', 'n_tokens_mistral': 899, 'n_tokens_neox': 876, 'n_words': 124}