github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/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  }