Skip to content

Options

Zandyball edited this page Dec 8, 2023 · 6 revisions

Add a .goborc.json file to the root of your project's directory to apply configuration settings to your project.

Example:

{
    "width": 90,
    "tabWidth": 4,
    "useTabs": true,
    "formatComments": true
}

The following configuration options are available:

Setting Default Description
width 90 The line length that the formatter will wrap on.
useTabs true Whether to indent with tabs instead of spaces.
tabWidth 4 The number of spaces per indentation level. If useTabs = true, this value is used to determine line length.
formatComments true Whether to format the content of comments.

Clone this wiki locally