Files
avo/examples
Michael McLoughlin 9c70781236 all: go 1.17 (#197)
Bump CI Go versions to 1.16 and 1.17.
Update build tags with `go:build` equivalents.
Upgrade asmfmt tool for new `go:build` support.

Updates #183
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-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
2019-09-16 11:01:48 -07: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: