Skip to content

Commit

Permalink
chore: Move snakecase.go to stringutil subfolder.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Thompson <[email protected]>
  • Loading branch information
jefft0 committed Oct 11, 2023
1 parent 97091dc commit 306c473
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tm2/pkg/amino/genproto/genproto.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"time"

"github.com/gnolang/gno/tm2/pkg/amino"
"github.com/gnolang/gno/tm2/pkg/amino/genproto/stringutil"
"github.com/gnolang/gno/tm2/pkg/amino/pkg"
)

Expand Down Expand Up @@ -206,7 +207,7 @@ func (p3c *P3Context) GenerateProto3MessagePartial(p3doc *P3Doc, rt reflect.Type
p3Field := P3Field{
Repeated: fp3IsRepeated,
Type: fp3,
Name: ToLowerSnakeCase(field.Name),
Name: stringutil.ToLowerSnakeCase(field.Name),
Number: field.FieldOptions.BinFieldNum,
}
p3msg.Fields = append(p3msg.Fields, p3Field)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// the expected spelling of a message field name. It is a copy of:
// https://github.com/bufbuild/buf/blob/main/private/pkg/stringutil/stringutil.go

package genproto
package stringutil

import (
"sort"
Expand Down

0 comments on commit 306c473

Please sign in to comment.