Closed kyoungho closed 4 years ago
Creating testable examples displayed in Godoc documentation. https://blog.golang.org/examples
There are no testable examples displayed in the API documentation.
Displaying testable examples in the API documentation. Examples can be used as tests.
It will be useful for users to understand API when referring to Godoc API documentation. Examples can be used as tests as well.
Added some testable examples.
https://godoc.org/github.com/rticommunity/rticonnextdds-connector-go#pkg-examples https://github.com/rticommunity/rticonnextdds-connector-go/blob/master/example_test.go
Proposal:
Creating testable examples displayed in Godoc documentation. https://blog.golang.org/examples
Current behavior:
There are no testable examples displayed in the API documentation.
Desired behavior:
Displaying testable examples in the API documentation. Examples can be used as tests.
Use case:
It will be useful for users to understand API when referring to Godoc API documentation. Examples can be used as tests as well.