| 1 |
gonew example.com/quote my.com/test |
| 2 |
|
| 3 |
-- example.com/[email protected]/go.mod -- |
| 4 |
module example.com/quote |
| 5 |
-- example.com/[email protected]/quote.go -- |
| 6 |
package quote |
| 7 |
|
| 8 |
import ( |
| 9 |
"example.com/quote/bar" |
| 10 |
) |
| 11 |
|
| 12 |
func Quote() {} |
| 13 |
-- example.com/[email protected]/quote/another.go -- |
| 14 |
package quote // another package quote! |
| 15 |
-- stderr -- |
| 16 |
gonew: initialized my.com/test in ./test |
| 17 |
-- out/test/go.mod -- |
| 18 |
module my.com/test |
| 19 |
-- out/test/quote.go -- |
| 20 |
package test |
| 21 |
|
| 22 |
import ( |
| 23 |
"my.com/test/bar" |
| 24 |
) |
| 25 |
|
| 26 |
func Quote() {} |
| 27 |
-- out/test/quote/another.go -- |
| 28 |
package quote // another package quote! |