You can split your code across multiple files in the same directory. All files with package main at the top are part of the same package. Go compiles them together.
myproject/
go.mod
main.go
helpers.go
Both main.go and helpers.go can use functions from each other without importing. They're in the same package. Run go run . to compile and run all files together.