12 lines
238 B
Plaintext
12 lines
238 B
Plaintext
|
|
func main(args)
|
|
{
|
|
Net.Http.ListenSimpleWithLoop((ctx)=>{
|
|
if(ctx.Path == "/")
|
|
{
|
|
ctx.WithMimeType("text/html").SendText(Pages.Index());
|
|
return true;
|
|
}
|
|
return false;
|
|
},4206);
|
|
} |