Change consts type to map[string]interface{}

This commit is contained in:
M. Mert Yildiran 2023-02-05 22:55:02 +03:00
parent e62ebea8d8
commit 776f9ce9af
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ import (
) )
type ScriptingConfig struct { type ScriptingConfig struct {
Consts map[string]string `yaml:"consts"` Consts map[string]interface{} `yaml:"consts"`
Source string `yaml:"source" default:""` Source string `yaml:"source" default:""`
} }

View File

@ -177,7 +177,7 @@ func (connector *Connector) PostLicense(license string) {
} }
} }
func (connector *Connector) PostConsts(consts map[string]string) { func (connector *Connector) PostConsts(consts map[string]interface{}) {
if len(consts) == 0 { if len(consts) == 0 {
return return
} }