Beispiel #1
0
func WhenFactory(p *core.Parser, config *core.Configuration) (core.Tag, error) {
	condition, err := p.ReadPartialCondition()
	if err != nil {
		return nil, err
	}
	p.SkipPastTag()
	return &When{NewCommon(), condition}, nil
}