We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b45ff1c commit eb5bba0Copy full SHA for eb5bba0
config/algorithm.go
@@ -36,6 +36,7 @@ func (alg HmacAlgorithm) Hash() (h hash.Hash) {
36
return h
37
}
38
39
+// String returns a string representation of HmacAlgorithm.
40
func (alg HmacAlgorithm) String() string {
41
var s string
42
switch alg {
@@ -52,6 +53,7 @@ func (alg HmacAlgorithm) String() string {
52
53
return s
54
55
56
+// MarshalJSON returns a JSON representation of HmacAlgorithm.
57
func (alg HmacAlgorithm) MarshalJSON() ([]byte, error) {
58
return json.Marshal(alg.String())
59
0 commit comments