This commit is contained in:
陶林 2022-06-20 08:42:10 +08:00
commit 255ba740d6
8 changed files with 48 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
Projects/
*.exe

8
1-try/.idea/.gitignore vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

9
1-try/.idea/1-try.iml Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

8
1-try/.idea/modules.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/1-try.iml" filepath="$PROJECT_DIR$/.idea/1-try.iml" />
</modules>
</component>
</project>

11
1-try/README.md Normal file
View File

@ -0,0 +1,11 @@
### 打包
windows
╰─$ go build -o server.exe main.go
linux
╰─$ go build -o server main.go 1 ↵

3
1-try/go.mod Normal file
View File

@ -0,0 +1,3 @@
module 1-try
go 1.18

7
1-try/main.go Normal file
View File

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}

BIN
1-try/server Executable file

Binary file not shown.