Skip to content

denisdubovitskiy/ifacemaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ifacemaker

Usage

ifacemaker \
  --source-pkg github.com/mattermost/mattermost-server/[email protected] \
  --module-path model \
  --result-pkg client \
  --struct-name Client4 \
  --interface-name Client4 \
  --output mattermost/client.go

Parameters

  • --source-pkg - A source package in which the desired struct is located.
  • --module-path - A full path to the struct package where desired struct resides. Should start from the source package's root.
  • --result-pkg - A name for the resulting package.
  • --struct-name - A name of the struct from which an interface should be generated.
  • --interface-name - A name for resulting interface.
  • --output - A filename in which a result interface is going to be stored.

About

Extract interface from the go struct

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages