ci: auto generate drivers lang file

This commit is contained in:
Noah Hsu
2022-08-26 19:06:32 +08:00
parent 7425e001db
commit cc9ccc4e9b
3 changed files with 64 additions and 6 deletions

View File

@ -11,7 +11,7 @@ var Json = json.ConfigCompatibleWithStandardLibrary
// WriteJsonToFile write struct to json file
func WriteJsonToFile(dst string, data interface{}) bool {
str, err := Json.MarshalIndent(data, "", " ")
str, err := json.MarshalIndent(data, "", " ")
if err != nil {
log.Errorf("failed convert Conf to []byte:%s", err.Error())
return false