github.com/v2fly/v2ray-core/v4@v4.45.2/common/platform/securedload/file.go (about) 1 package securedload 2 3 func GetAssetSecured(name string) ([]byte, error) { 4 var err error 5 for k, v := range knownProtectedLoader { 6 loadedData, errLoad := v.VerifyAndLoad(name) 7 if errLoad == nil { 8 return loadedData, nil 9 } 10 err = newError(k, " is not loading executable file").Base(errLoad) 11 } 12 return nil, err 13 }