Skip to content

Commit

Permalink
add badges
Browse files Browse the repository at this point in the history
  • Loading branch information
strider2038 committed Feb 26, 2021
1 parent 4ba9cbe commit f426c13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Tests

on:
push:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Language package for Golang

[![Go Reference](https://pkg.go.dev/badge/github.com/muonsoft/language.svg)](https://pkg.go.dev/github.com/muonsoft/language)
[![Go Report Card](https://goreportcard.com/badge/github.com/muonsoft/language)](https://goreportcard.com/report/github.com/muonsoft/language)
[![CI](https://github.com/muonsoft/language/actions/workflows/main.yml/badge.svg)](https://github.com/muonsoft/language/actions/workflows/main.yml)

Package language provides HTTP middleware for parsing language from HTTP request and passing it via context.

## Example of reading language from Accept-Language header
Expand Down
1 change: 1 addition & 0 deletions middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ type Middleware struct {
next http.Handler
}

// MiddlewareOption is used to set up Middleware.
type MiddlewareOption func(middleware *Middleware)

// ReadFromCookie can be used to set up middleware to read language value from cookie with given name.
Expand Down

0 comments on commit f426c13

Please sign in to comment.