Skip to content

Commit c8f23fb

Browse files
cli: lib examples
1 parent f0d17cc commit c8f23fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: internal/cli/lib/examples.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ type libraryExamples struct {
9494
}
9595

9696
type libraryExamplesResult struct {
97-
Examples []*libraryExamples
97+
Examples []*libraryExamples `json:"examples"`
9898
}
9999

100100
func (ir libraryExamplesResult) Data() interface{} {
101-
return ir.Examples
101+
return ir
102102
}
103103

104104
func (ir libraryExamplesResult) String() string {

0 commit comments

Comments
 (0)