mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 04:22:22 +00:00
16 lines
256 B
Plaintext
16 lines
256 B
Plaintext
implement Hello;
|
|
|
|
include "sys.m"; sys: Sys;
|
|
include "draw.m";
|
|
|
|
Hello: module
|
|
{
|
|
init: fn(ctxt: ref Draw->Context, args: list of string);
|
|
};
|
|
|
|
init(ctxt: ref Draw->Context, args: list of string)
|
|
{
|
|
sys = load Sys Sys->PATH;
|
|
sys->print("hello, world\n");
|
|
}
|