example: golang.org/x/example/gotypes/skeleton Files

Command skeleton

The skeleton command prints the boilerplate for a concrete type that implements the specified interface type.

Example:

$ ./skeleton io ReadWriteCloser buffer
// *buffer implements io.ReadWriteCloser.
type buffer struct{ /* ... */ }
func (b *buffer) Close() error { panic("unimplemented") }
func (b *buffer) Read(p []byte) (n int, err error) { panic("unimplemented") }
func (b *buffer) Write(p []byte) (n int, err error) { panic("unimplemented") }

Package Files

main.go

Package main imports 8 packages (graph). Updated 2021-01-15. Refresh now. Tools for package owners.