tinygo_annotations 0.0.2 copy "tinygo_annotations: ^0.0.2" to clipboard
tinygo_annotations: ^0.0.2 copied to clipboard

Annotations (@GoImport / @GoName / @GoType) for writing dart2tinygo board bindings: declare the Go-side counterparts of external Dart declarations.

tinygo_annotations (package) #

Languages: English | 日本語

pub package

Annotations (@GoImport / @GoName / @GoType) that let binding authors declare the Go-side counterparts from the Dart side.

@GoImport('github.com/you/runtime', alias: 'rt')
library;

import 'package:tinygo_annotations/tinygo_annotations.dart';

@GoName('rt.NewWidget')
external Widget newWidget();

@GoType('*rt.Widget')
class Widget {
  @GoName('Show')
  external void show(int x, int y, String text);
}

See docs/writing_bindings.md for the full rules.

0
likes
150
points
327
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Annotations (@GoImport / @GoName / @GoType) for writing dart2tinygo board bindings: declare the Go-side counterparts of external Dart declarations.

Repository (GitHub)
View/report issues
Contributing

Topics

#embedded #tinygo #microcontroller

License

BSD-3-Clause (license)

More

Packages that depend on tinygo_annotations