Skip to content
Randall O'Reilly edited this page Feb 2, 2019 · 6 revisions

Here are the emergent-specific naming conventions -- please use these to keep the code as readable and consistent as possible!

First, we follow all the general Go conventions:

And here are some additions for the GoKi framework:

Beyond those, we have the following more specific cases:

Accessors

Generally provide 2 methods for accessing elements in cases that might fail (e.g., by name):

  • ThingByName(name string) *thing
  • ThingByNameCheck(name string) (*thing, error)

We should adopt this convention for GoKi too...