func setBigIntString(conf *config.Config, s string) (BigInt, error) { i, ok := big.NewInt(0).SetString(s, conf.InputBase()) if !ok { return BigInt{}, errors.New("integer parse error") } return BigInt{i}, nil }
func setIntString(conf *config.Config, s string) (Int, error) { i, err := strconv.ParseInt(s, conf.InputBase(), intBits) return Int(i), err }