Saturday, May 4, 2024
HomeGolangWhy within the Visible Studio Code terminal with the command "go run...

Why within the Visible Studio Code terminal with the command “go run most important.go” the server begins, however then no different command might be entered into the terminal? – Getting Assist


Why within the Visible Studio Code terminal with the command “go run most important.go” the server begins, however then no different command might be entered into the terminal (to do that, both restart the terminal or use CTRL+C to finish execution)? Is it due to incorrect code or due to the Visible Studio Code terminal? Do I want to repair this drawback? Brandmauer Home windows can be enabled after every run of go run most important.go.

 bundle most important

import (

    "fmt"

    "internet/http"

)

func home_page(web page http.ResponseWriter, r *http.Request) {

    fmt.Fprintf(web page, "Go is tremendous simple!!!")

}

func handleRequest() {

    http.HandleFunc("https://discussion board.golangbridge.org/", home_page)

    http.ListenAndServe(":8080", nil)

   

}

func most important() {

    handleRequest()

}

That’s the way it’s alleged to be. The server begins till killed.

This matter was routinely closed 90 days after the final reply. New replies are not allowed.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments