Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
何 广一
intern_project_backend
Commits
c8ccf072
Commit
c8ccf072
authored
Jun 22, 2025
by
IronHammer Std
Browse files
Initial Commit(Basic Server)
parents
Changes
3
Show whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
c8ccf072
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
.idea/
.vscode/
log/
\ No newline at end of file
Server.go
0 → 100644
View file @
c8ccf072
package
main
import
(
"io"
"net/http"
)
func
Ping
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
io
.
WriteString
(
w
,
"pong~"
)
}
func
main
()
{
http
.
HandleFunc
(
"/ping"
,
Ping
)
http
.
ListenAndServe
(
":8080"
,
nil
)
}
\ No newline at end of file
go.mod
0 → 100644
View file @
c8ccf072
module intern_project_backend
go 1.24.3
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment