jinzhu / copier

Copier for golang, copy value from struct to struct and more
MIT License
5.58k stars 489 forks source link

嵌套结构造成stack overflow #156

Open KingOfDuck opened 2 years ago

KingOfDuck commented 2 years ago

Reproducible Example

type Config struct {
    Indicator   *Indicator 
    Condition   *IndicatorNodeValueCondition
}

type Indicator struct {
    NodeValue     *NodeValue
    LeftNode      *Indicator
    RightNode     *Indicator
}

type NodeValue struct {
    Condition     *Condition
}

type Condition struct {
    Conditions       []*Condition
}

Description

copier.copy(config, originConfig)