Is there any option to convert []byte to func (Assuming that []byte
carries valid function)
----
package main
import (
"fmt"
"io/ioutil"
)
func run(b []byte) {
/// HERE ?
}
func main() {
if b, e := ioutil.ReadFile("./file.go"); e != nil {
fmt.Println(e)
} else {
run(b)
}
}
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.