-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from alexandregv/no_ellipsis
Add -render-type-content option to render full type content instead of an ellipsis (`{ ... }`)
- Loading branch information
Showing
7 changed files
with
80 additions
and
0 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
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,39 @@ | ||
# pkg15 | ||
|
||
Package pkg15 is a testing package. | ||
|
||
## Types | ||
|
||
### type [ExampleType](/pkg.go#L5) | ||
|
||
```go | ||
type ExampleType struct { | ||
ExportedVal int | ||
|
||
ExampleInterface interface{} | ||
// contains filtered or unexported fields | ||
} | ||
``` | ||
|
||
ExampleType is a type | ||
|
||
### type [ExampleType2](/pkg.go#L21) | ||
|
||
```go | ||
type ExampleType2 struct { | ||
ExampleInterface interface{} | ||
// contains filtered or unexported fields | ||
} | ||
``` | ||
|
||
ExampleType2 is a type with an array | ||
|
||
### type [ExampleTypeInt](/pkg.go#L27) | ||
|
||
```go | ||
type ExampleTypeInt struct { | ||
// contains filtered or unexported fields | ||
} | ||
``` | ||
|
||
ExampleTypeInt is a one-liner type |
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,3 @@ | ||
module pkg15 | ||
|
||
go 1.15 |
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,4 @@ | ||
{ | ||
"types": true, | ||
"render_type_content": true | ||
} |
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,27 @@ | ||
// Package pkg15 is a testing package. | ||
package pkg15 | ||
|
||
// ExampleType is a type | ||
type ExampleType struct { | ||
ExportedVal int | ||
val int | ||
ExampleInterface interface{} | ||
} | ||
|
||
// ExampleTypeFactory is a factory function for ExampleType. | ||
func ExampleTypeFactory() ExampleType { | ||
return ExampleType{1, 1, "test"} | ||
} | ||
|
||
// ExampleMethod is a method on ExampleType. | ||
func (e ExampleType) ExampleMethod() { | ||
} | ||
|
||
// ExampleType2 is a type with an array | ||
type ExampleType2 struct { | ||
val []int | ||
ExampleInterface interface{} | ||
} | ||
|
||
// ExampleTypeInt is a one-liner type | ||
type ExampleTypeInt struct{ val int } |