Documentation
¶
Overview ¶
Package draw provides svg writing features.
s := NewSvg() s.WriteSvg(os.Stdout) <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100" font-family="Arial, Helvetica, sans-serif"></svg>
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Svg ¶
type Svg struct {
Content []SvgWriter
// contains filtered or unexported fields
}
type TagWriter ¶
type TagWriter struct {
// contains filtered or unexported fields
}
func NewTagWriter ¶
NewTagWriter returns a writer nexus. The referenced error is set by all methods if an error occurs.
Example ¶
w, err := NewTagWriter(os.Stdout)
w.Print("hello")
*err = fmt.Errorf("stop subsequent calls")
w.Printf("cruel %s", "world")
Output: hello
func (*TagWriter) Print ¶
func (t *TagWriter) Print(args ...interface{})
Print prints arguments using the underlying writer. Does nothing if TagWriter has failed.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
cmd/dog
command
Document generation for example diagrams
|
Document generation for example diagrams |
|
Package shape provides various SVG shapes
|
Package shape provides various SVG shapes |
|
design
Package design provides svg diagram creators
|
Package design provides svg diagram creators |
|
Package xy provides xy Position
|
Package xy provides xy Position |
Click to show internal directories.
Click to hide internal directories.