add string method to the Nature type

This commit is contained in:
natercio committed 2025-11-24 15:55:30 +00:00
1 parent 6b5552b559
commit a1ea13ff2f
2 files changed
+45

No files matched your search

+7
View File
@@ -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)
}