Move go version check into main() (#3734)

Previously the check was done in init().  This patch moves into main
for unit testable friendly function.
This commit is contained in:
Bala FA
2017-02-11 14:57:27 +05:30
committed by Harshavardhana
parent 25b936c369
commit 440866d26c
6 changed files with 88 additions and 57 deletions

View File

@@ -65,12 +65,6 @@ VERSION:
` + Version +
`{{ "\n"}}`
// init - check the environment before main starts
func init() {
// Check if minio was compiled using a supported version of Golang.
checkGoVersion()
}
func migrate() {
// Migrate config file
err := migrateConfig()