Interactive web pages in Go

前端 未结 5 1699
时光说笑
时光说笑 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:29

    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.

提交回复
热议问题