Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Ванин Дмитрий Михайлович
ms-rat
Commits
2eb0892d
Commit
2eb0892d
authored
2 years ago
by
Ванин Дмитрий Михайлович
Browse files
Options
Download
Patches
Plain Diff
Add write info listener
parent
42edebf3
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rat-server.go
+1
-0
rat-server.go
with
1 addition
and
0 deletions
+1
-0
rat-server.go
+
1
−
0
View file @
2eb0892d
...
...
@@ -89,6 +89,7 @@ func main() {
}
http
.
HandleFunc
(
"/"
,
getInfo
)
http
.
HandleFunc
(
"/write"
,
writeInfo
)
http
.
HandleFunc
(
"/whoami"
,
whoami
)
fmt
.
Printf
(
"Try to start on port 8080"
)
if
err
:=
http
.
ListenAndServe
(
":8080"
,
nil
);
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets