Answers for "go hello world"

2

hello world in go

// First Go program 
package main 
  
import "fmt"
  
// Main function 
func main() { 
  
    fmt.Println("!... Hello World ...!") 
}
Posted by: Guest on March-03-2021
2

hello world in golang

package main
import "fmt"
func main() {
    fmt.Println("hello world")
}
Posted by: Guest on October-09-2020
0

go hello world

package main

import "fmt"

func main(){
	fmt.Println("hello world")
}
Posted by: Guest on July-11-2020
0

hello world golang

package main

import fmt

func main() {
	fmt.Println("hello, world!")
}
Posted by: Guest on May-29-2020
0

go hello world

package mainimport "fmt"func main() {   fmt.Println("Hello, World!")}
Posted by: Guest on June-11-2021
0

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)
}
Posted by: Guest on January-02-2021

Browse Popular Code Answers by Language