16 lines
190 B
Go
16 lines
190 B
Go
|
package main
|
||
|
|
||
|
import "net/http"
|
||
|
|
||
|
func main() {
|
||
|
http.Handle(
|
||
|
"/",
|
||
|
http.FileServer(
|
||
|
http.Dir("."),
|
||
|
),
|
||
|
)
|
||
|
if err := http.ListenAndServe(":8000", nil); err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
}
|