26 lines
		
	
	
		
			695 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			695 B
		
	
	
	
		
			Go
		
	
	
	
	
	
/*----------------------------------------------------------------------------------------
 | 
						|
 * Copyright (c) Microsoft Corporation. All rights reserved.
 | 
						|
 * Licensed under the MIT License. See LICENSE in the project root for license information.
 | 
						|
 *---------------------------------------------------------------------------------------*/
 | 
						|
 | 
						|
package main
 | 
						|
 | 
						|
import (
 | 
						|
	"fmt"
 | 
						|
	"io"
 | 
						|
	"net/http"
 | 
						|
 | 
						|
	"github.com/microsoft/vscode-remote-try-go/hello"
 | 
						|
)
 | 
						|
 | 
						|
func handle(w http.ResponseWriter, r *http.Request) {
 | 
						|
	io.WriteString(w, hello.Hello())
 | 
						|
}
 | 
						|
 | 
						|
func main() {
 | 
						|
	portNumber := "5000"
 | 
						|
	http.HandleFunc("/", handle)
 | 
						|
	fmt.Println("Server listening on port ", portNumber)
 | 
						|
	http.ListenAndServe(":"+portNumber, nil)
 | 
						|
}
 |