dylibso / xtp-go-bindgen

XTP bindgen support for Go, generating a Go PDK from an XTP Schema
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Naming convention: `snake_case` becomes `Snake_case` #15

Closed evacchi closed 2 months ago

evacchi commented 2 months ago

it looks like snake_case identifiers are just made public by upper-casing their first letter, but no other transformations are applied. Is this intended, or shall we also convert snake_case to CamelCase?

evacchi commented 2 months ago

huh, just realized that maybe we are assuming the default is camelCase ? :P EDIT: indeed https://docs.xtp.dylibso.com/docs/concepts/xtp-schema

evacchi commented 2 months ago

maybe worth adding a lint warning in case of snake_case