Let’s say I have a following program from a URL
I expect the user to already have
go
installed
package main
import "fmt"
func main() {
var name string
fmt.Print("Enter Name: ")
fmt.Scanln(&name)
fmt.Printf("Hello %v", name)
}
I want the code above to execute as a part of my program (CLI-Name: urlgo
)
In terminal, if I run this:
$ urlgo run <url>
Expected
Enter Name: soubik
Hello soubik
Are there anyways of doing this instead of compiling the code
.