diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-04-30 16:18:17 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-04-30 16:18:17 -0400 |
| commit | 5d79dc324de0a23fd0543951f0fd1f0352018654 (patch) | |
| tree | f924ee2fba3def91bec831e4a6577204470d412d /xgbgen/go_union.go | |
| parent | f7be3db65e559e77355537a11a88c8657ec4c059 (diff) | |
splitting up go specific code. too much for one file IMO. more progress. almost done with structs.
Diffstat (limited to 'xgbgen/go_union.go')
| -rw-r--r-- | xgbgen/go_union.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/xgbgen/go_union.go b/xgbgen/go_union.go new file mode 100644 index 0000000..5721c49 --- /dev/null +++ b/xgbgen/go_union.go @@ -0,0 +1,15 @@ +package main + +// Union types +func (u *Union) Define(c *Context) { + c.Putln("// Union definition %s", u.SrcName()) +} + +func (u *Union) Read(c *Context, prefix string) { + c.Putln("// Union read %s", u.SrcName()) +} + +func (u *Union) Write(c *Context, prefix string) { + c.Putln("// Union write %s", u.SrcName()) +} + |
