S
S
Sm4llDev2020-05-18 21:18:19
go
Sm4llDev, 2020-05-18 21:18:19

Running compiled Go file on Mac and Linux?

There is an "app.go" file:

package main

import "fmt"

func main() {
    fmt.Println("Hello World! ")
}


I compiled it in the console:
go build app.go

The "app" file appeared

How can I run it now?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question