mirror of
https://github.com/restic/restic.git
synced 2025-12-23 08:10:26 -05:00
In order to change the backend initialization in `global.go` to be able
to generically call cfg.ApplyEnvironment() for supported backends, the
`interface{}` returned by `ParseConfig` must contain a pointer to the
configuration.
An alternative would be to use reflection to convert the type from
`interface{}(Config)` to `interface{}(*Config)` (from value to pointer
type). However, this would just complicate the type mess further.
|
||
|---|---|---|
| .. | ||
| config.go | ||
| config_test.go | ||
| doc.go | ||
| layout_test.go | ||
| local.go | ||
| local_internal_test.go | ||
| local_test.go | ||
| local_unix.go | ||
| local_windows.go | ||