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.