go hello world
package main
import "fmt"
func main(){
fmt.Println("hello world")
}
go hello world
package main
import "fmt"
func main(){
fmt.Println("hello world")
}
go hello world on browser
go hello world on browser
=========================
run command
> go run main.go
------------------------
paste in address bar
> http://localhost:8080
=========================
package main
import (
"fmt"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello world", r.URL.Path)
})
http.ListenAndServe(":8080", nil)
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us