FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gpython/repl/web/serve.go at main · go-python/gpython · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
go-python
/
gpython
Public
Notifications
You must be signed in to change notification settings
Fork
105
Star
1k
Code
Issues
49
Pull requests
5
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
gpython
/
repl
/
web
/
serve.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (17 loc) · 389 Bytes
Breadcrumbs
gpython
/
repl
/
web
/
serve.go
Copy path
File metadata and controls
20 lines (17 loc) · 389 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//go:build none
// +build none
package
main
import
(
"fmt"
"log"
"mime"
"net/http"
)
func
main
() {
mime
.
AddExtensionType
(
".wasm"
,
"application/wasm"
)
mime
.
AddExtensionType
(
".js"
,
"application/javascript"
)
mux
:=
http
.
NewServeMux
()
mux
.
Handle
(
"/"
,
http
.
FileServer
(
http
.
Dir
(
"."
)))
fmt
.
Printf
(
"Serving on http://localhost:3000/
\n
"
)
log
.
Fatal
(
http
.
ListenAndServe
(
":3000"
,
mux
))
}
Back
|
FazBrowse Home
|
New Git URL