go-jwt
Installation
SKILL.md
Go JWT (ES256 / PS256 / RS256 / HS256)
JWT signing and verification using github.com/golang-jwt/jwt/v5.
Supports ES256 (ECDSA P-256, recommended for new projects), PS256 (RSA-PSS, recommended over RS256), RS256 (RSA PKCS1v1.5, legacy), and HS256 (HMAC symmetric).
Placement
| Project Type | Path / Lookup order |
|---|---|
| New project | pkg/jwt/ |
| Existing project | 1) pkg/jwt 2) pkg/utils/jwt (fallback) |
For new projects, MUST create the package under pkg/jwt/.
Dependencies
go get github.com/golang-jwt/jwt/v5