You and only you are responsible for security of your application.
Looking and one of the attacks on HMAC we should be careful with key length.
In test and examples it short for clarity but in production (or anything beside examples) it must be more secure.
See jwt.GenerateRandom512Bit
func in jwt.go