Exporting functions
Modus uses the default conventions for each language.- Go
- AssemblyScript
Functions written in Go use starting capital letters to expose functions as public. Modus
creates an external API for public functions from any file that belongs to the Since the
main package.The functions below generate an API endpoint with the signatureclassify function isn’t capitalized, Modus doesn’t include it in the
generated GraphQL API.