add string method to the Nature type
This commit is contained in:
1 parent
6b5552b559
commit
a1ea13ff2f
2 files changed
+45
No files matched your search
@@ -13,3 +13,10 @@ const (
|
||||
// Resgates ou alienação de unidades de participação ou liquidação de fundos de investimento
|
||||
NatureG20 Nature = "G20"
|
||||
)
|
||||
|
||||
func (n Nature) String() string {
|
||||
if n == "" {
|
||||
return "unknown"
|
||||
}
|
||||
return string(n)
|
||||
}
|
||||
Reference in new issue
Block a user