Skip to content

Commit

Permalink
chore: expose usedCodes for document (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
kfangw authored and Sangyeop.lee committed Dec 8, 2020
1 parent a3ef4e5 commit 4e68457
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions types/errors/errors_doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package errors

func RegisteredErrors() []*Error {
es := make([]*Error, 0, len(usedCodes))
for _, e := range usedCodes {
es = append(es, e)
}
return es
}

0 comments on commit 4e68457

Please sign in to comment.