Thanks Rob!

On Monday, March 20, 2017 at 10:04:34 PM UTC-5, Rob 'Commander' Pike wrote:
>
> No, Go does not have run-time evaluation of Go program source. It is 
> strictly a compiled language, although there are some (pieces of) 
> interpreters out there.
>
> -rob
>
>
> On Mon, Mar 20, 2017 at 7:57 PM, Sandeep Kalra <sandee...@gmail.com 
> <javascript:>> wrote:
>
>> 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 golang-nuts...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to