Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change yaml decoder to fix nested field problem
もし、ScriptConfig.Data/ScriptConfig.Dataにネストしたデータ構造が 存在した場合、gopkg.in/yaml.v2ではmap[interface{}]interface{}型の データとして格納される。 しかし、jsonではkeyは必ずstringである必要があるため、jsonに変換する 過程でこのようなエラーが発生する。 panic: json: unsupported type: map[interface {}]interface {} map[string]interface{}型を返すよう、パッチを当てた実装に切り替える ことで、この問題を回避する。
- Loading branch information