Messaging/pkg/internal/models/utils.go

9 lines
167 B
Go
Raw Normal View History

2024-03-30 09:10:36 +00:00
package models
import jsoniter "github.com/json-iterator/go"
func FitStruct(src any, out any) {
raw, _ := jsoniter.Marshal(src)
_ = jsoniter.Unmarshal(raw, out)
}