An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

proxy.golang.org : github.com/fvbommel/common-iface : v0.0.0-20181006170717-1a504a396ef6

common-iface is a small utility that prints out an interface type representing the common interface of the types passed on the command line. For example, suppose you want to parse some data from either memory (contained in a bytes.Reader) or a buffered network connection (bufio.Reader). You want to know what methods will be available, so you run: Or if you want to be able to handle both files and network connections: This can then e.g. be copy-pasted into a source file to define a local interface type (and optionally trimmed down to remove unused methods).

Registry - Documentation - Download - JSON
purl: pkg:golang/github.com/fvbommel/[email protected]
Published:
Indexed:

    Loading...
    Readme
    Loading...