repo init

This commit is contained in:
Thilo Karraß 2023-02-19 21:01:39 +01:00
commit 21f04939bc
8 changed files with 61 additions and 0 deletions

8
.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

View File

@ -0,0 +1,10 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
<option name="processCode" value="true" />
<option name="processLiterals" value="true" />
<option name="processComments" value="true" />
</inspection_tool>
</profile>
</component>

9
.idea/lemserv.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
.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/lemserv.iml" filepath="$PROJECT_DIR$/.idea/lemserv.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml Normal file
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>

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module udico.de/tondorf/lemserv
go 1.20

BIN
lemserv Executable file

Binary file not shown.

17
lemserv.go Normal file
View File

@ -0,0 +1,17 @@
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/mything", handleSomething)
if err := http.ListenAndServe(":8088", nil); err != http.ErrServerClosed {
fmt.Printf("Ouch, server closed: %v\n", err)
}
}
func handleSomething(w http.ResponseWriter, r *http.Request) {
fmt.Println("Wohooo, a request!")
}