genbindings: generated go methods should always be public

This commit is contained in:
mappu 2024-08-08 17:51:46 +12:00
parent 179c37dfe0
commit 618b68aaf9

View File

@ -85,7 +85,10 @@ func (nm CppMethod) SafeMethodName() string {
`()`, `Call`,
)
return replacer.Replace(nm.MethodName)
tmp := replacer.Replace(nm.MethodName)
// Also make the first letter uppercase so it becomes public in Go
return strings.ToUpper(tmp[0:1]) + tmp[1:]
}
type CppClass struct {