Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgigi96 committed Jan 14, 2022
1 parent 9744805 commit dfb92c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/eosclient/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const (
UserAttr
)

// AttrTypeToString converts an AttrType to a string
func AttrTypeToString(at eosclient.AttrType) string {
switch at {
case SystemAttr:
Expand All @@ -41,6 +42,7 @@ func AttrTypeToString(at eosclient.AttrType) string {
}
}

// AttrStringToType parses a string to an AttrType
func AttrStringToType(t string) (eosclient.AttrType, error) {
switch t {
case "sys":
Expand Down

0 comments on commit dfb92c6

Please sign in to comment.