Add BlockEntity support

This commit is contained in:
Tnze
2022-12-18 18:28:08 +08:00
parent 27b1347e74
commit c1a6528a05
10 changed files with 712 additions and 153 deletions

View File

@ -21,3 +21,10 @@ func ToGoTypeName(name string) string {
}
return strings.Join(words, "")
}
func ToFuncReceiverName(name string) string {
if len(name) > 0 {
name = string(unicode.ToLower([]rune(name)[0]))
}
return name
}