MCPcopy Create free account
hub / github.com/cel-expr/cel-go / loadFile

Function loadFile

tools/compiler/compiler.go:180–186  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

178}
179
180func loadFile(path string) ([]byte, error) {
181 data, err := os.ReadFile(path)
182 if err != nil {
183 return nil, fmt.Errorf("failed to read file %q: %v", path, err)
184 }
185 return data, err
186}
187
188func loadProtoFile(path string, format FileFormat, out protoreflect.ProtoMessage) error {
189 unmarshaller := proto.Unmarshal

Callers 3

loadProtoFileFunction · 0.85
EnvironmentFileFunction · 0.85
CreateASTMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected