update lint and dependency (#2)
All checks were successful
Go Action / goaction (push) Successful in 33s
All checks were successful
Go Action / goaction (push) Successful in 33s
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
@@ -12,10 +12,10 @@ var (
|
||||
_ encoding.Encode = Encode
|
||||
)
|
||||
|
||||
func Decode(r io.Reader, v interface{}) error {
|
||||
func Decode(r io.Reader, v any) error {
|
||||
return json.NewDecoder(r).Decode(v)
|
||||
}
|
||||
|
||||
func Encode(w io.Writer, v interface{}) error {
|
||||
func Encode(w io.Writer, v any) error {
|
||||
return json.NewEncoder(w).Encode(v)
|
||||
}
|
||||
|
||||
@@ -10,6 +10,8 @@ import "unicode/utf8"
|
||||
//
|
||||
// All values are true except for the ASCII control characters (0-31), the
|
||||
// double quote ("), and the backslash character ("\").
|
||||
//
|
||||
//nolint:gochecknoglobals
|
||||
var safeSet = [utf8.RuneSelf]bool{
|
||||
' ': true,
|
||||
'!': true,
|
||||
|
||||
Reference in New Issue
Block a user