Files
avo/examples
Michael McLoughlin 34ac353c14 all: remove +build tags (#377)
Commit 759be3dad9 bumped our Go
requirement to 1.18 which allows us to drop support for old-style
`+build` tags. This change runs `go fix ./...` to remove them, and
updates some remaining code generators that produced `+build` lines.
2023-03-05 20:30:01 -08:00
..
2023-03-05 20:30:01 -08:00
2023-03-05 20:30:01 -08:00
2023-03-05 20:30:01 -08:00
2023-03-05 20:30:01 -08:00
2023-03-05 20:30:01 -08:00
2023-03-05 20:30:01 -08:00
2023-03-05 20:30:01 -08:00
2023-03-05 20:30:01 -08:00
2023-03-05 20:30:01 -08:00
2023-03-05 20:30:01 -08:00
2023-03-05 20:30:01 -08:00
2023-03-05 20:30:01 -08:00
2023-03-05 20:30:01 -08:00
2023-03-05 20:30:01 -08: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: