diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 62dc311..4ed2cd2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: diff --git a/README.md b/README.md index 2a6abae..bd6fbc7 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/go.mod b/go.mod index 0f6c181..f4546cb 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/amalfra/etag +module github.com/amalfra/etag/v2 -go 1.12 +go 1.16