-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix shortening of inline interface definitions inside function declar…
…ations (#46) * Fix shortening of inline interfaces in function declarations * Fix spelling * Revert debugging in shortener.go * Bump version * Improve documentation of custom formatters * More README fixes
- Loading branch information
1 parent
5338e9f
commit 314e7db
Showing
5 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package fixtures | ||
|
||
// Based on example in https://github.com/segmentio/golines/issues/40 | ||
func CreateEphemeralRecordEvent(ctx interface { | ||
string | ||
int | ||
string | ||
}, id string, name string, kaid string, districtID string, status string, anotherArg string, aThirdArg string) (*string, error) { | ||
return nil, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package fixtures | ||
|
||
// Based on example in https://github.com/segmentio/golines/issues/40 | ||
func CreateEphemeralRecordEvent( | ||
ctx interface { | ||
string | ||
int | ||
string | ||
}, | ||
id string, | ||
name string, | ||
kaid string, | ||
districtID string, | ||
status string, | ||
anotherArg string, | ||
aThirdArg string, | ||
) (*string, error) { | ||
return nil, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ import ( | |
) | ||
|
||
const ( | ||
versionStr = "0.6.0" | ||
versionStr = "0.7.0" | ||
) | ||
|
||
var ( | ||
|