This commit is contained in:
oneao committed 2025-08-01 17:30:28 +08:00
1 parent 5ef02d648a
commit a07052e4ca
8 files changed
+111 -6

No files matched your search

+8
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
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
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/base-farmework.iml" filepath="$PROJECT_DIR$/.idea/base-farmework.iml" />
</modules>
</component>
</project>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../../.." vcs="Git" />
</component>
</project>
@@ -0,0 +1,25 @@
package main
import (
"fmt"
"log"
"net/http"
)
func helloHandler(w http.ResponseWriter, r *http.Request) {
_, err := fmt.Fprintf(w, "Hello, world!")
if err != nil {
log.Printf("write response error: %v", err)
return
}
}
func main() {
http.HandleFunc("/", helloHandler)
err := http.ListenAndServe(":8081", nil)
if err != nil {
log.Fatalf("server start failed: %v", err)
}
}
+3
View File
@@ -0,0 +1,3 @@
module base-farmework
go 1.24