MCPcopy Create free account
hub / github.com/mmcgrana/gobyexample / Example

Struct Example

tools/generate.go:109–115  ·  view source on GitHub ↗

Example is info extracted from an example file

Source from the content-addressed store, hash-verified

107
108// Example is info extracted from an example file
109type Example struct {
110 ID, Name string
111 GoCode, GoCodeHash, URLHash string
112 Segs [][]*Seg
113 PrevExample *Example
114 NextExample *Example
115}
116
117func parseHashFile(sourcePath string) (string, string) {
118 lines := readLines(sourcePath)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected