-This directory is hopefully temporary, containing various experimantal code towards a GO language extension.
+This directory is hopefully temporary, containing various experimental
+code towards a GO language extension.
-Currently requires a very recent GO installed in /usr/local/go
-
-(Later than the 1.1.2 available in fc20 or rawhide at this time.)
+Currently requires a very recent GO. i.e. Later than the 1.1.2
+available in fc20 or rawhide at this time. Use appropriate setup_xxx, e.g.
+ . ./setup_usr_local
package main
import ( "gv" )
func main() {
- var g gv.Agraph_t
- var n, m gv.Agnode_t
-// var e gv.Agedge_t
- g = gv.Digraph("G")
- n = gv.Node(g, "hello")
- m = gv.Node(g, "world")
- gv.Edge(n, m)
- gv.Write(g, "hello.out")
+ gv.Digraph("G")
}