Skip to content

Commit

Permalink
fix: added fix to clean dots from enum names
Browse files Browse the repository at this point in the history
  • Loading branch information
demeyerthom committed Aug 12, 2024
1 parent 16e1a59 commit b548ee5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ class GoFileProducer constructor(

private fun StringType.renderEnumValues(enumName: String): String {
return this.enumValues()
.map { "${enumName}${it.exportName()} $enumName = \"$it\"" }
.map { "${enumName}${it.exportName().replace(".", "")} $enumName = \"$it\"" }
.joinToString(prefix = "const (", separator = "\n", postfix = ")")
}

Expand Down

0 comments on commit b548ee5

Please sign in to comment.