Stop using relative imports and add a go.mod file. Tested against Go 1.6 through Go pre-1.13, and gccgo.
10 lines
148 B
Go
10 lines
148 B
Go
package main
|
|
|
|
import "sneaky1"
|
|
|
|
func main() {
|
|
_ = sneaky1.Add(3, 4)
|
|
_ = sneaky1.Subtract(3, 4)
|
|
_ = sneaky1.Mul(3, 4)
|
|
_ = sneaky1.Divide(3, 4)
|
|
}
|