tinygo_annotations 0.0.2
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 | 日本語
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.