Add MarshalChain func
This commit is contained in:
parent
b6071c50ec
commit
33a82e544b
1 changed files with 4 additions and 0 deletions
|
@ -92,3 +92,7 @@ func ParseDefaultBase(raw map[string]any, extraParsers ...UnmarshalFunc) (BaseAp
|
|||
res, errs := chainParse(raw, base, allParsers...)
|
||||
return res, slices.Insert(errs, 0, err)
|
||||
}
|
||||
|
||||
func MarshalChain(chain BaseApChain) map[string]any {
|
||||
return chain.MarshalToMap()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue