Skip to content

Commit

Permalink
make Go 1.18 as minimum version and run tests for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
amalfra committed May 27, 2023
1 parent cb6ce64 commit 34b0f8d
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.16.x, 1.17.x, 1.18.x, 1.19.x]
go-version: [1.18.x, 1.19.x, 1.20.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,23 +2,23 @@ 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/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)
[![GoDoc](https://godoc.org/github.com/amalfra/etag/v3?status.svg)](https://godoc.org/github.com/amalfra/etag/v3)
[![Go Report Card](https://goreportcard.com/badge/github.com/amalfra/etag/v3)](https://goreportcard.com/report/github.com/amalfra/etag/v3)
[![Coverage Status](https://coveralls.io/repos/github/amalfra/etag/badge.svg?branch=main)](https://coveralls.io/github/amalfra/etag?branch=main)

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/v2
go get github.com/amalfra/etag/v3
```

## Usage
Next, import the package
``` go
import (
"github.com/amalfra/etag/v2"
"github.com/amalfra/etag/v3"
)
```
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/v2
module github.com/amalfra/etag/v3

go 1.16
go 1.18

0 comments on commit 34b0f8d

Please sign in to comment.