mirror of
https://github.com/onyx-and-iris/gignore.git
synced 2025-03-31 10:51:19 +01:00
12 lines
297 B
Go
12 lines
297 B
Go
package gignore
|
|
|
|
// Option is a function that configures a GignoreClient.
|
|
type Option func(*Client)
|
|
|
|
// WithTemplateDirectory sets the template directory for the GignoreClient.
|
|
func WithTemplateDirectory(directory string) Option {
|
|
return func(c *Client) {
|
|
c.registry.Directory = directory
|
|
}
|
|
}
|