Skip to content

Commit 49e9019

Browse files
author
mayuri
committed
add html server for go
1 parent 81ca9df commit 49e9019

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎html/goserver/web.go‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package main
2+
import (
3+
"net/http"
4+
)
5+
func main() {
6+
http.Handle("/", http.FileServer(http.Dir("./")))
7+
http.ListenAndServe(":3000", nil)
8+
}

0 commit comments

Comments
 (0)