Files
avo/examples
Michael McLoughlin 429cf3cdbf ci: bump to go 1.19 (#330)
* Bump CI to Go 1.19
* Update golang/go edwards25519 test
* Apply formatting to printer stubs output (to get correct comment formatting)
* Bump gofumpt version
2022-09-05 22:15:01 -07:00
..
2021-10-29 01:18:34 -07:00
2021-10-29 01:18:34 -07:00
2021-10-29 01:18:34 -07:00
2021-10-29 01:18:34 -07:00
2021-10-29 01:18:34 -07:00
2021-10-29 01:18:34 -07:00
2021-10-29 01:18:34 -07:00
2021-10-29 01:18:34 -07:00
2021-11-12 19:02:39 -08:00
2022-09-05 22:15:01 -07:00
2021-10-29 01:18:34 -07:00
2021-10-29 01:18:34 -07:00
2021-10-29 01:18:34 -07:00
2021-11-12 19:02:39 -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.
  • pragma: Apply compiler directives to generated functions.

"Real" examples: