summaryrefslogtreecommitdiff
path: root/xgbgen/go_union.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-04-30 16:18:17 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-04-30 16:18:17 -0400
commit5d79dc324de0a23fd0543951f0fd1f0352018654 (patch)
treef924ee2fba3def91bec831e4a6577204470d412d /xgbgen/go_union.go
parentf7be3db65e559e77355537a11a88c8657ec4c059 (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.go15
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())
+}
+