MCPcopy Create free account
hub / github.com/256dpi/gcode / svg

Function svg

cmd/gcode/main.go:53–62  ·  view source on GitHub ↗
(c *command)

Source from the content-addressed store, hash-verified

51}
52
53func svg(c *command) {
54 // load g-code file
55 file := loadFile(c.aInput)
56
57 // get svg code
58 svg := gcode.ConvertToSVG(file)
59
60 // write svg file
61 writeFileString(c.aOutput, svg)
62}

Callers 1

mainFunction · 0.85

Calls 3

ConvertToSVGFunction · 0.92
loadFileFunction · 0.85
writeFileStringFunction · 0.85

Tested by

no test coverage detected