-
-
Notifications
You must be signed in to change notification settings - Fork 5
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. |