(pkgName string)
| 43 | } |
| 44 | |
| 45 | func BuiltInForPackage(pkgName string) ([]byte, error) { |
| 46 | for re, name := range builtInMap { |
| 47 | if re.MatchString(pkgName) { |
| 48 | return builtIn.ReadFile(name + ".json") |
| 49 | } |
| 50 | } |
| 51 | return builtIn.ReadFile(pkgName + ".json") |
| 52 | } |
| 53 | |
| 54 | func (f *BuiltIn) FileContent(contentPath string) ([]byte, error) { |
| 55 | return builtIn.ReadFile(contentPath) |
no outgoing calls
no test coverage detected