Skip to content

Commit eb5bba0

Browse files
committed
Add missing method documentation.
1 parent b45ff1c commit eb5bba0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/algorithm.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func (alg HmacAlgorithm) Hash() (h hash.Hash) {
3636
return h
3737
}
3838

39+
// String returns a string representation of HmacAlgorithm.
3940
func (alg HmacAlgorithm) String() string {
4041
var s string
4142
switch alg {
@@ -52,6 +53,7 @@ func (alg HmacAlgorithm) String() string {
5253
return s
5354
}
5455

56+
// MarshalJSON returns a JSON representation of HmacAlgorithm.
5557
func (alg HmacAlgorithm) MarshalJSON() ([]byte, error) {
5658
return json.Marshal(alg.String())
5759
}

0 commit comments

Comments
 (0)