Initial commit

This commit is contained in:
eleksir
2024-03-12 23:14:55 +03:00
commit 74eaf3bd75
634 changed files with 259702 additions and 0 deletions

21
vendor/github.com/lufia/plan9stats/opts.go generated vendored Normal file
View File

@@ -0,0 +1,21 @@
package stats
type Config struct {
rootdir string
}
type Option func(*Config)
func newConfig(opts ...Option) *Config {
var cfg Config
for _, opt := range opts {
opt(&cfg)
}
return &cfg
}
func WithRootDir(dir string) Option {
return func(cfg *Config) {
cfg.rootdir = dir
}
}