schnittstelle (german for “interface”) is a CLI tool to generate an interface from the methods implemented for a struct in a source tree.


Simply compile and install the tool on your system using go install.

GOBIN=/usr/local/bin go install

Alternatively, you can simply download latest binaries from the releases page or artifacts from latest CI builds.


Usage of schnittstelle:
  -interface string
        The name of the result interface (name of struct when not specified)
  -out string
        Output file (if not specified, output will be piped to Stdout)
  -package string
        Package name ingested in output
  -pool uint
        Number of files which can be searched through simultaneously (default 10)
  -root string
        Root directory (default ".")
  -struct string
        Name of the struct


View Github