Skip to content

Instantly share code, notes, and snippets.

@Integralist
Created January 16, 2023 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Integralist/d6c1001c252c84a9c128fa3e8c477be2 to your computer and use it in GitHub Desktop.
Save Integralist/d6c1001c252c84a9c128fa3e8c477be2 to your computer and use it in GitHub Desktop.
[Go Playground multiple files] #go #golang #playground
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