Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make multi-line arrays always use trailing commas #217

Merged
merged 1 commit into from Feb 28, 2018
Merged

Make multi-line arrays always use trailing commas #217

merged 1 commit into from Feb 28, 2018

Conversation

ctd1500
Copy link
Contributor

@ctd1500 ctd1500 commented Feb 22, 2018

This makes the Encoder option ArraysWithOneElementPerLine output arrays with commas after every element.

A = [1,2,3]

Now becomes:

A = [
  1,
  2,
  3,
]

Originally proposed here: golang/dep#1595

This makes ArraysWithOneElementPerLine output arrays with commas after every element.

```
A = [1,2,3]
```

Now becomes:

```
A = [
  1,
  2,
  3,
]
```
@pelletier
Copy link
Owner

Looks good to me. Thank you for the patch!

@pelletier pelletier merged commit 05bcc0f into pelletier:master Feb 28, 2018
@ctd1500 ctd1500 deleted the multi-line-array-commas branch March 1, 2018 01:49
@sdboyer-stripe
Copy link

would love to see a release, so that i can roll this in with the next version of dep :)

@pelletier
Copy link
Owner

@sdboyer-stripe it's been a while indeed! there you go: https://github.com/pelletier/go-toml/releases/tag/v1.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants