svgutil

package
v0.0.0-...-c6ea6ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2021 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

http://play.golang.org/p/kyfff6Kg1c

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	Id          string
	Stroke      string
	StrokeWidth int32
	Fill        string
	FillRule    string
	Elements    []interface{}
}

func (*Group) UnmarshalXML

func (g *Group) UnmarshalXML(decoder *xml.Decoder, start xml.StartElement) error

Implements encoding.xml.Unmarshaler interface

type Path

type Path struct {
	Id string `xml:"id,attr"`
	D  string `xml:"d, attr"`
}

type Rect

type Rect struct {
	Id string `xml:"id,attr"`
}

type Svg

type Svg struct {
	Title  string  `xml:"title"`
	Groups []Group `xml:"g"`
}

func ParseSvgBytes

func ParseSvgBytes(data []byte) (*Svg, error)

func ParseSvgString

func ParseSvgString(str string) (*Svg, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL