// LoadAPIKeyFromEnvOrConfig returns API Key from either Env or LastPassConfig file
// If Env `LASTPASS_APIKEY` exists, that will be prioritized.
LoadAPIKeyFromEnvOrConfig returns API Key from either Env or LastPassConfig file
If Env `LASTPASS_APIKEY` exists, that will be prioritized.
// LoadAPIKeyFromEnvOrConfig returns API Key from either Env or LastPassConfig file // If Env ` LASTPASS_APIKEY ` exists that will be prioritized .
func LoadAPIKeyFromEnvOrConfig(configFile string) string {
	if secret := os.Getenv("LASTPASS_APIKEY"); secret != "" {
		return secret
	}
	config, err := LoadConfig(configFile)
	if err != nil {
		return ""
	}
	return config.Secret
}
func LoadAPIKeyFromEnvOrConfig ( configFile string ) string { if secret := os . Getenv ( " " ) ; secret != " " { return secret } config , err := LoadConfig ( configFile ) if err != nil { return " " } return config . Secret }
LoadAPIKeyFromEnvOrConfig returns API Key from either Env or LastPassConfig file
If Env `LASTPASS_APIKEY` exists, that will be prioritized.
LoadAPIKeyFromEnvOrConfig returns API Key from either Env or LastPassConfig file If Env ` LASTPASS_APIKEY ` exists that will be prioritized .