MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / loadFile

Method loadFile

tools/mage/headers.go:112–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110}
111
112func (Headers) loadFile() error {
113 headerBytes, err := os.ReadFile(headerFile)
114 if err != nil {
115 return err
116 }
117 if err = yaml.Unmarshal(headerBytes, &headerConfig); err != nil {
118 return err
119 }
120 headerConfig.split()
121 return nil
122}
123
124type checkErr struct {
125 Path string

Callers

nothing calls this directly

Calls 3

ReadFileMethod · 0.65
UnmarshalMethod · 0.65
splitMethod · 0.45

Tested by

no test coverage detected