svg

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: MIT Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(fs filesystem.FileLoader, logger util.Logger, prj *project.Project) (int, error)

func Content

func Content(prj string, fs filesystem.FileLoader, key string) (string, error)

func Contents

func Contents(key string, fs filesystem.FileLoader, logger util.Logger) ([]string, map[string]string, error)

func List

func List(fs filesystem.FileLoader, logger util.Logger) ([]string, error)

func RefreshAppIcon

func RefreshAppIcon(ctx context.Context, prj *project.Project, fs filesystem.FileLoader, logger util.Logger) error

func Remove

func Remove(prj string, fs filesystem.FileLoader, key string, logger util.Logger) error

func Run

func Run(fs filesystem.FileLoader, tgt string, logger util.Logger, prj *project.Project) (int, error)

func SetAppIcon

func SetAppIcon(ctx context.Context, prj *project.Project, fs filesystem.FileLoader, x *SVG, logger util.Logger) error

Types

type SVG

type SVG struct {
	Key    string
	Markup string
}

func AddContentToProject added in v1.5.24

func AddContentToProject(prj string, fs filesystem.FileLoader, tgt string, content string, srcURL string) (*SVG, error)

func AddToProject

func AddToProject(ctx context.Context, prj string, fs filesystem.FileLoader, src string, tgt string) (*SVG, error)

func Transform

func Transform(tgt string, b []byte, url string) (*SVG, error)

func (*SVG) Proper added in v1.3.9

func (s *SVG) Proper() string

type SVGs added in v1.3.9

type SVGs []*SVG

Jump to

Keyboard shortcuts

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