Skip to content

Instantly share code, notes, and snippets.

@dictav
Last active March 30, 2022 19:31
Show Gist options
  • Save dictav/3d372ae5aaf3c890bfa8d3f811cef790 to your computer and use it in GitHub Desktop.
Save dictav/3d372ae5aaf3c890bfa8d3f811cef790 to your computer and use it in GitHub Desktop.
Go 1.18 Experiment files
package main
type Experiment struct{}
package main
type ExperimentHoge struct{}
module example.com/experiment
go 1.17
package main
import "fmt"
func main() {
exp := Experiment{}
fmt.Println(exp)
exphoge := ExperimentHoge{}
fmt.Println(exphoge)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment