github.com/eh-steve/goloader@v0.0.0-20240111193454-90ff3cfdae39/convert_stub.go (about)

     1  //go:build !go1.18
     2  // +build !go1.18
     3  
     4  package goloader
     5  
     6  import "fmt"
     7  
     8  func CanAttemptConversion(oldValue, newValue interface{}) bool {
     9  	return false
    10  }
    11  
    12  func ConvertTypesAcrossModules(oldModule, newModule *CodeModule, oldValue, newValue interface{}) (res interface{}, err error) {
    13  	return nil, fmt.Errorf("not supported in this older Go version yet - requires backport")
    14  }