parse

package
v0.0.0-...-211c7f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

parse.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(input string) (numbers []int, err error)

Parse parses the space-separated words in in put as integers.

Types

type ParseError

type ParseError struct {
	Index int    // The index into the space-separated list of words.
	Word  string // The word that generated the parse error.
	Err   error  // The raw error that precipitated this error, if any.
}

A ParseError indicates an error in converting a word into an integer.

func (*ParseError) String

func (e *ParseError) String() string

String returns a human-readable error message.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL