INNER CODE UNIT · Go

pos

ozontech/file.d · cfg/config.go:505

			if pos == -1 {
				i, err := strconv.Atoi(vField.String())
				if err != nil {
					return fmt.Errorf("can't convert %s to int", vField.String())
				}
				finalField.SetInt(int64(i))
				return nil
			}

			op1 := strings.TrimSpace(vField.String()[:pos])
			op := vField.String()[pos]
			op2 := strings.TrimSpace(vField.String()[pos+1:])

			op1_, err := strconv.Atoi(op1)
			if err != nil {
				has := false
				op1_, has = values[op1]
				if !has {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…