file: refactor config
- Seperate the config from Permissions() - Add YAML tags for the fields
This commit is contained in:
9
config/file.go
Normal file
9
config/file.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package config
|
||||
|
||||
type File struct {
|
||||
Encoding string `yaml:"-"`
|
||||
Content string `yaml:"content"`
|
||||
Owner string `yaml:"owner"`
|
||||
Path string `yaml:"path"`
|
||||
RawFilePermissions string `yaml:"permissions"`
|
||||
}
|
Reference in New Issue
Block a user