Skip to content

v0.1.7

Compare
Choose a tag to compare
@sujit-baniya sujit-baniya released this 27 Sep 06:07
· 4 commits to master since this release

Added Config

type Config struct {
	Name        string    `json:"name"`
	Value       string    `json:"value"`
	Path        string    `json:"path"`
	Domain      string    `json:"domain"`
	MaxAge      int       `json:"max_age"`
	Expires     time.Time `json:"expires"`
	Secure      bool      `json:"secure"`
	HTTPOnly    bool      `json:"http_only"`
	SameSite    string    `json:"same_site"`
	SessionOnly bool      `json:"session_only"`
}

and change in API. Now need to pass config in New(config Config)