func CookieName(name string) Option {
	return func(cs *csrf) error {
		cs.opts.CookieName = name
		return nil
	}
}
CookieName changes the name of the CSRF cookie issued to clients.

Note that cookie names should not contain whitespace, commas, semicolons,
backslashes or control characters as per RFC6265.
package csrf
import (
	"net/http"
	"github.com/zenazn/goji/web"
)
type Option func(*csrf) error
func MaxAge(age int) Option {
	return func(cs *csrf) error {
		cs.opts.MaxAge = age
		return nil
	}
}
func Domain(domain string) Option {
	return func(cs *csrf) error {
		cs.opts.Domain = domain
		return nil
	}
}
func Path(p string) Option {
	return func(cs *csrf) error {
		cs.opts.Path = p
		return nil
	}
}
func Secure(s bool) Option {
	return func(cs *csrf) error {
		cs.opts.Secure = s
		return nil
	}
}
func HttpOnly(h bool) Option {
	return func(cs *csrf) error {
		cs.opts.HttpOnly = h
		return nil
	}
}
func ErrorHandler(h web.Handler) Option {
	return func(cs *csrf) error {
		cs.opts.ErrorHandler = h
		return nil
	}
}
func RequestHeader(header string) Option {
	return func(cs *csrf) error {
		cs.opts.RequestHeader = header
		return nil
	}
}
func FieldName(name string) Option {
	return func(cs *csrf) error {
		cs.opts.FieldName = name
		return nil
	}
}