loklak / loklak_go_api

Go library client for using the Loklak API
1.06k stars 6 forks source link

Export functions & field names #9

Closed RasyidUFA closed 7 years ago

RasyidUFA commented 7 years ago

All functions of the API must be exported so that it can be used by other programs.

An identifier may be exported to permit access to it from another package. from : https://golang.org/ref/spec#Exported_identifiers

And for Loklak object field name. in order to use it, we must export it too.

When importing a package, you can refer only to its exported names. Any "unexported" names are not accessible from outside the package.

jayvdb commented 7 years ago

@mariobehling, @sudheesh001 ping

sudheesh001 commented 7 years ago

Why is there a convention change ? from abcDef to AbcDef ? It makes sense to do this to the field names but not to the methods and functions.