Created
January 16, 2023 12:43
-
-
Save Integralist/d6c1001c252c84a9c128fa3e8c477be2 to your computer and use it in GitHub Desktop.
[Go Playground multiple files] #go #golang #playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"play.ground/foo" | |
) | |
func main() { | |
foo.Bar() | |
} | |
-- go.mod -- | |
module play.ground | |
-- foo/foo.go -- | |
package foo | |
import "fmt" | |
func Bar() { | |
fmt.Println("The Go playground now has support for multiple files!") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment