text/x-go
Go source code
| Description | Go source code |
|---|---|
| File extensions | .go |
| Based on | text/plain |
Frequently asked questions
What is the MIME type text/x-go?
text/x-go denotes “Go source code”.
Which file extension does text/x-go use?
Files of type text/x-go usually end in .go.
How does a web server serve text/x-go correctly?
With the header Content-Type: text/x-go. In nginx: types { text/x-go go; }; in Apache: AddType text/x-go .go.