Interactive web pages in Go

前端 未结 5 1695
时光说笑
时光说笑 2020-12-10 23:58

Do you know if it\'s possible to create interactive web pages in Go? For example, having one or multiple buttons, or a combo box that refreshes the page with the data being

5条回答
  •  不思量自难忘°
    2020-12-11 00:22

    ""No, you cannot program interactive web pages in Go. This is because Go programs run on the server, not in the web browser.

    To do something interactive, you have to write JavaScript programs that communicate with the Go program on the server.

    The Go program is somehow involved with the interactive web app, but the interactivity comes from the JavaScript part. ""

    I believe the answer is actually yes Go is capable of creating interactive websites, go is capable of reading from the http.Request so from this input you are able to define through your Go Code what will happen next with some Advanced Go programing.Go itself in theory was designed to be a web server side programming language but of course its output medium is the Web.

提交回复
热议问题