Task

Demonstrate the language's ability to include source code from other files.




See Also
 Compiler/Simple file inclusion pre processor




// main.go
package main
 
import "fmt"
 
func hello() {
    fmt.Println("Hello from main.go")
}
 
func main() {
    hello()
    hello2()
}