Skip to content

Commit

Permalink
Update features.md
Browse files Browse the repository at this point in the history
Add `inpackage: True` to interface-adjacent layout yaml config, per #580.
  • Loading branch information
LandonTClipp committed Mar 11, 2023
1 parent 9b098fe commit 6e2d052
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ These are various layouts you may want to adopt:
dir: "{{.InterfaceDir}}"
structname: "Mock{{.InterfaceName}}"
outpkg: "{{.PackageName}}"
inpackage: True
```

Instead of the mocks being generated in a different folder, you may elect to generate the mocks alongside the original interface in your package. This may be the way most people define their configs, as it removes circular import issues that can happen with the default config.
Expand Down

0 comments on commit 6e2d052

Please sign in to comment.