.go Go source code

Text & source code

MIME typetext/x-go
DescriptionGo source code
CategoryText & source code
Based ontext/plain

Frequently asked questions

What is a .go file?

A .go file is a “Go source code” (MIME type text/x-go).

How do I open a .go file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .go file?

No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.go shows the guessed type.

Which format is .go based on?

Technically a .go file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .go?

The MIME type is text/x-go. In the Apache web server: AddType text/x-go .go; in nginx: types { text/x-go go; }.

Nearby entries