MCPcopy
hub / github.com/golang/tools / Code

Struct Code

present/code.go:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36type Code struct {
37 Cmd string // original command from present source
38 Text template.HTML
39 Play bool // runnable code
40 Edit bool // editable code
41 FileName string // file name
42 Ext string // file extension
43 Raw []byte // content of the file
44}
45
46func (c Code) PresentCmd() string { return c.Cmd }
47func (c Code) TemplateName() string { return "code" }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected