1-try
This commit is contained in:
commit
255ba740d6
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
Projects/
|
||||
*.exe
|
8
1-try/.idea/.gitignore
vendored
Normal file
8
1-try/.idea/.gitignore
vendored
Normal 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
9
1-try/.idea/1-try.iml
Normal 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
8
1-try/.idea/modules.xml
Normal 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
11
1-try/README.md
Normal 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
3
1-try/go.mod
Normal file
@ -0,0 +1,3 @@
|
||||
module 1-try
|
||||
|
||||
go 1.18
|
7
1-try/main.go
Normal file
7
1-try/main.go
Normal file
@ -0,0 +1,7 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println("Hello World")
|
||||
}
|
BIN
1-try/server
Executable file
BIN
1-try/server
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user