Skip to content
/ golang Public

learn to build a website with go to write backend

Notifications You must be signed in to change notification settings

plh97/golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

golang

so easy to build a website

to create a file name index.go

index.go

package main

import "net/http"

func main()  {
	http.HandleFunc("/",someFunc)
	http.ListenAndServe(":8080",nil)
}

func someFunc(w http.ResponseWriter, req * http.Request)  {
	w.Write([]byte("Hello universe"))
}
go run index.go

About

learn to build a website with go to write backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages