Skip to content

Commit

Permalink
make Go 1.16 as minimum required version
Browse files Browse the repository at this point in the history
  • Loading branch information
amalfra committed May 21, 2022
1 parent 4d37470 commit f3fda52
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x]
go-version: [1.16.x, 1.17.x, 1.18.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ etag
========
[![GitHub release](https://img.shields.io/github/release/amalfra/etag.svg)](https://github.com/amalfra/etag/releases)
![Build Status](https://github.com/amalfra/etag/actions/workflows/test.yml/badge.svg?branch=main)
[![GoDoc](https://godoc.org/github.com/amalfra/etag?status.svg)](https://godoc.org/github.com/amalfra/etag)
[![Go Report Card](https://goreportcard.com/badge/github.com/amalfra/etag)](https://goreportcard.com/report/github.com/amalfra/etag)
[![GoDoc](https://godoc.org/github.com/amalfra/etag/v2?status.svg)](https://godoc.org/github.com/amalfra/etag/v2)
[![Go Report Card](https://goreportcard.com/badge/github.com/amalfra/etag/v2)](https://goreportcard.com/report/github.com/amalfra/etag/v2)

A go package to create HTTP ETags (as defined in RFC 7232) for use in HTTP responses.

## Installation
You can download the package using
```sh
go get github.com/amalfra/etag
go get github.com/amalfra/etag/v2
```

## Usage
Next, import the package
``` go
import (
"github.com/amalfra/etag"
"github.com/amalfra/etag/v2"
)
```
You can now call the ```generate``` function to create an ETag. The second parameter is a boolean which specifies whether the generated ETag must be weak or not.
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/amalfra/etag
module github.com/amalfra/etag/v2

go 1.12
go 1.16

0 comments on commit f3fda52

Please sign in to comment.