We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to render a dot file to png. Here is my simple function.
func RenderDot(dot string, fn string) error { ctx := context.Background() g, err := graphviz.New(ctx) if err != nil { return err } defer g.Close() graph, err := graphviz.ParseBytes([]byte(dot)) if err != nil { return err } err = g.RenderFilename(ctx, graph, graphviz.PNG, fn) return err }
When trying to render "digraph G {Hello->World}", there is no error, but the generated png file is 0 byte. Any hint that what I did wrong?
"digraph G {Hello->World}"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to render a dot file to png. Here is my simple function.
When trying to render
"digraph G {Hello->World}"
, there is no error, but the generated png file is 0 byte. Any hint that what I did wrong?The text was updated successfully, but these errors were encountered: