MCPcopy
hub / github.com/Aylur/ags / getDataFile

Function getDataFile

cli/cmd/init.go:36–42  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

34}
35
36func getDataFile(name string) string {
37 content, err := env.Data.ReadFile("data/" + name)
38 if err != nil {
39 lib.Err(err)
40 }
41 return string(content)
42}
43
44// TODO: interactive init, to ask for
45// project dir

Callers 2

initConfigFunction · 0.85
types.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected