Skip to content

paetzke/godot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

godot

Godot is a graphviz wrapper for Go.

An example:

package main

import "github.com/paetzke/godot/godot"

func main() {
        dotter, err := godot.NewDotter(godot.OUT_PDF, godot.GRAPH_DIRECTED, "test.pdf")
        defer dotter.Close()
        if err != nil {
                panic(err)
        }

        dotter.SetLink("val", "val")
        dotter.SetLabel("val", "LABEL!!")

        dotter.SetLink("val", "val1")
        dotter.SetLink("val", "val1")
        dotter.SetLink("val", "val1")

        dotter.SetLabel("val3", "sLABEL!!")

        dotter.SetNodeShape("val3", godot.SHAPE_BOX)
        dotter.SetNodeShape("val34", godot.SHAPE_BOX)
}

CREDITS

Thanks to:

Copyright (c) 2013, Friedrich Paetzke ([email protected])

All rights reserved.

About

Godot is a graphviz wrapper for Go.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages