go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/sdk/configutil/constants.go (about)

     1  /*
     2  
     3  Copyright (c) 2023 - Present. Will Charczuk. All rights reserved.
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository.
     5  
     6  */
     7  
     8  package configutil
     9  
    10  const (
    11  	// EnvVarConfigPath is the env var for configs.
    12  	EnvVarConfigPath = "CONFIG_PATH"
    13  )
    14  
    15  var (
    16  	// DefaultPaths are default path locations.
    17  	// They are tested and read in order, so the later
    18  	// paths will override data found in the earlier ones.
    19  	DefaultPaths = []string{
    20  		"/var/secrets/config.yml",
    21  		"/var/secrets/config.yaml",
    22  		"/var/secrets/config.json",
    23  		"./_config/config.yml",
    24  		"./_config/config.yaml",
    25  		"./_config/config.json",
    26  		"./config.yml",
    27  		"./config.yaml",
    28  		"./config.json",
    29  	}
    30  )