Files
avo/examples
Michael McLoughlin 1735441939 all: apply gofumpt (#79)
Apply @mvdan's opinionated gofumpt formatter across the codebase.
2019-04-13 22:53:13 -05:00
..
2019-04-13 22:53:13 -05:00
2019-04-13 22:53:13 -05:00
2019-04-13 22:53:13 -05:00
2019-04-13 22:53:13 -05:00
2019-04-13 22:53:13 -05:00
2019-04-13 22:53:13 -05:00
2019-04-13 22:53:13 -05:00
2019-01-22 22:35:01 -08:00

Examples

Simple functions:

  • add: Add two numbers. The "Hello World!" of avo.
  • sum: Sum an array of numbers.

Features:

  • args: Loading function arguments.
  • returns: Building return values.
  • complex: Working with complex{64,128} types.
  • data: Defining DATA sections.
  • ext: Interacting with types from external packages.

"Real" examples: