Open hic003cih opened 4 years ago
初始化mod文件 go mod init crawler 開啟使用MODULE export GO111MODULE="on" 執行main go run main.go 會將packe包下載到下面目錄 C:\Users\leifchang\go\pkg\mod 然後目錄裡直接import就可以使用了 "crawler/fetcher"
初始化mod文件 go mod init crawler 開啟使用MODULE export GO111MODULE="on" 執行main go run main.go 會將packe包下載到下面目錄 C:\Users\leifchang\go\pkg\mod 然後目錄裡直接import就可以使用了 "crawler/fetcher"