mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-29 15:10:37 +00:00
* linter: Enable gofumpt and run against codebase * Address shazbert's nits * gofumpt: Fix issues after rebase
24 lines
525 B
Go
24 lines
525 B
Go
package versions
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// Version0 is a baseline version with no changes, so we can downgrade back to nothing
|
|
// It does not implement any upgrade interfaces
|
|
type Version0 struct{}
|
|
|
|
func init() {
|
|
Manager.registerVersion(0, &Version0{})
|
|
}
|
|
|
|
// UpgradeConfig is an empty stub
|
|
func (v *Version0) UpgradeConfig(_ context.Context, j []byte) ([]byte, error) {
|
|
return j, nil
|
|
}
|
|
|
|
// DowngradeConfig is an empty stub
|
|
func (v *Version0) DowngradeConfig(_ context.Context, j []byte) ([]byte, error) {
|
|
return j, nil
|
|
}
|