1234567891011121314151617181920212223242526272829303132333435 |
- package generated
- import "k8s.io/klog"
- func ReadOrDie(filePath string) []byte {
- fileBytes, err := Asset(filePath)
- if err != nil {
- gobindataMsg := "An error occurred, possibly gobindata doesn't know about the file you're opening. For questions on maintaining gobindata, contact the sig-testing group."
- klog.Infof("Available gobindata files: %v ", AssetNames())
- klog.Fatalf("Failed opening %v , with error %v. %v.", filePath, err, gobindataMsg)
- }
- return fileBytes
- }
|