Skip to content

Commit

Permalink
Merge pull request #183 from hculea/hculea/capitalize-variant-names-c…
Browse files Browse the repository at this point in the history
…onsistently

Capitalize all variant names when configuration specifies so in Go
  • Loading branch information
srriddle committed Jul 18, 2024
2 parents 0284e32 + d726752 commit aecde79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/language/go.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ impl Go {
));

if let Some(variant_type) = variant_type {
let variant_type = self.acronyms_to_uppercase(&variant_type);
let (variant_pointer, variant_deref, variant_ref) =
match (v, custom_structs.contains(&variant_type.as_str())) {
(RustEnumVariant::AnonymousStruct { .. }, ..) | (.., true) => {
Expand Down

0 comments on commit aecde79

Please sign in to comment.