add string method to the Nature type

This commit is contained in:
2025-11-24 15:53:38 +00:00
parent 6b5552b559
commit a1ea13ff2f
2 changed files with 45 additions and 0 deletions

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)
}