go mod init

Jmnote (토론 | 기여)님의 2023년 1월 7일 (토) 15:18 판 (→‎같이 보기)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요[ | ]

go mod init
root@localhost:~# mkdir hello1
root@localhost:~# cd hello1/
root@localhost:~/hello1# go mod init example.com/hello1
go: creating new go.mod: module example.com/hello1
root@localhost:~/hello1# ll
total 12
drwxr-xr-x 2 root root 4096 Nov 30 05:44 ./
drwx------ 1 root root 4096 Nov 30 05:44 ../
-rw-r--r-- 1 root root   35 Nov 30 05:44 go.mod
root@localhost:~/hello1# cat go.mod 
module example.com/hello1

go 1.15

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}