"Go mod init"의 두 판 사이의 차이

(새 문서: ==개요== {{소문자}} ;go mod init <syntaxhighlight lang='console'> root@golang-5d544dd5b7-f4cwj:~# mkdir hello1 root@golang-5d544dd5b7-f4cwj:~# cd hello1/ root@golang-5d544dd5b7-...)
 
 
(같은 사용자의 중간 판 2개는 보이지 않습니다)
4번째 줄: 4번째 줄:


<syntaxhighlight lang='console'>
<syntaxhighlight lang='console'>
root@golang-5d544dd5b7-f4cwj:~# mkdir hello1
root@localhost:~# mkdir hello1
root@golang-5d544dd5b7-f4cwj:~# cd hello1/
root@localhost:~# cd hello1/
root@golang-5d544dd5b7-f4cwj:~/hello1# go mod init example.com/hello1
root@localhost:~/hello1# go mod init example.com/hello1
go: creating new go.mod: module example.com/hello1
go: creating new go.mod: module example.com/hello1
root@golang-5d544dd5b7-f4cwj:~/hello1# cat go.mod  
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
module example.com/hello1


17번째 줄: 22번째 줄:
* [[go mod]]
* [[go mod]]
* [[go.mod]]
* [[go.mod]]
* [[Go 프로젝트 시작하기]]


==참고==
==참고==

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 }}