Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
53
func
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
main
Function · 0.85
Calls
3
ConvertToSVG
Function · 0.92
loadFile
Function · 0.85
writeFileString
Function · 0.85
Tested by
no test coverage detected