Is Go a server side language or a client side?

1,124 views
Skip to first unread message

Marlon Fez

unread,
Mar 22, 2017, 2:13:33 PM3/22/17
to golang-nuts
Hello,
I just heard about go, a new good language, but I cannot find the answer to my question. Is this new programming language a server side (Back-End) language or a client side (Front-End) language?
I currently work with C# for server side work and JavaScript for client side. Is Golang work in both side like NodeJS?

Thanks

Wim Lewis

unread,
Mar 22, 2017, 2:38:55 PM3/22/17
to golang-nuts
On Mar 22, 2017, at 11:10 AM, Marlon Fez <marlonf...@gmail.com> wrote:
I just heard about go, a new good language, but I cannot find the answer to my question. Is this new programming language a server side (Back-End) language or a client side (Front-End) language?
I currently work with C# for server side work and JavaScript for client side. Is Golang work in both side like NodeJS?

Go normally compiles to native code; it's a general-purpose language so you can run that code on servers or clients or wherever you like, but it is not normally a "compiles-to-JavaScript-and-runs-in-a-web-browser" language. (For example, you can write phone apps in Go, using it as a client-side/front-end language, but that's not the kind of front-end use I think you're asking about.)

There is a project to compile Go to JavaScript so you can use it in a web page as a "front-end" language, but I don't know much about it:

But the most common use of Go is as a server or systems language.


Reply all
Reply to author
Forward
0 new messages