MCPcopy Create free account
hub / github.com/ajstarks/svgo / Script

Method Script

svg.go:154–156  ·  view source on GitHub ↗

Script defines a script with a specified type, (for example "application/javascript").

(scriptype string, data ...string)

Source from the content-addressed store, hash-verified

152
153// Script defines a script with a specified type, (for example "application/javascript").
154func (svg *SVG) Script(scriptype string, data ...string) {
155 svg.linkembed("script", scriptype, data...)
156}
157
158// Style defines the specified style (for example "text/css")
159func (svg *SVG) Style(scriptype string, data ...string) {

Callers 1

mainFunction · 0.45

Calls 1

linkembedMethod · 0.95

Tested by

no test coverage detected