mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
genbindings: generated go methods should always be public
This commit is contained in:
parent
179c37dfe0
commit
618b68aaf9
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user