| 34 | } |
| 35 | |
| 36 | type 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 | |
| 46 | func (c Code) PresentCmd() string { return c.Cmd } |
| 47 | func (c Code) TemplateName() string { return "code" } |
nothing calls this directly
no outgoing calls
no test coverage detected