go mod init

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