skeleton

command
v0.0.0-...-32022ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

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") }

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL