Example #1
0
File: case.go Project: get3w/get3w
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
}