Download templates/backend.go.tmpl from Snapkitty/semantic-engine: direct link, hf CLI and curl.
- Browser
- Download file 623 Bytes
-
https://huggingface.co/Snapkitty/semantic-engine/resolve/main/templates/backend.go.tmpl
- Command line
-
hf download hf://Snapkitty/semantic-engine/templates/backend.go.tmpl
-
curl -L -o backend.go.tmpl https://huggingface.co/Snapkitty/semantic-engine/resolve/main/templates/backend.go.tmpl
623 Bytes
| // Code generated by semantic-engine. DO NOT EDIT. | |
| // Semantic root: {{.SemanticRoot}} | |
| // Temporal state: τ{{.Tau}} | |
| // Verified: {{.Verified}} | |
| package {{.Package}} | |
| import ( | |
| "errors" | |
| "fmt" | |
| ) | |
| {{range .Types}} | |
| // {{.Name}} — {{.Description}} | |
| type {{.Name}} struct { | |
| {{range .Fields}} {{.Name}} {{.Type}} | |
| {{end}}} | |
| {{end}} | |
| {{range .Operations}} | |
| // {{.Name}} implements {{.SemanticID}} | |
| func {{.Name}}({{range .Params}}{{.Name}} {{.Type}}, {{end}}) ({{.ReturnType}}, error) { | |
| {{range .Constraints}} // Constraint: {{.}} | |
| {{end}} | |
| {{.Body}} | |
| } | |
| {{end}} | |
| {{range .Tests}} | |
| func Test{{.Name}}(t *testing.T) { | |
| {{.Body}} | |
| } | |
| {{end}} | |