You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A go package to create HTTP ETags (as defined in RFC 7232) for use in HTTP responses.
10
10
11
11
## Installation
12
12
You can download the package using
13
13
```sh
14
-
go get github.com/amalfra/etag/v3
14
+
go get github.com/amalfra/etag/v4
15
15
```
16
16
17
17
## Usage
18
18
Next, import the package
19
19
```go
20
20
import (
21
-
"github.com/amalfra/etag/v3"
21
+
"github.com/amalfra/etag/v4"
22
22
)
23
23
```
24
24
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.
0 commit comments