Documentation ¶
Index ¶
- func LineParseInt(lr *LineReader) (int, error)
- func LineParseIntsN(lr *LineReader, n int) ([]int, error)
- func NewRandNow() *rand.Rand
- func NewRandSeed(seed int64) *rand.Rand
- func NewRandTime(t time.Time) *rand.Rand
- func ParseIntsN(s string, n int) ([]int, error)
- func RandIntMinMax(r *rand.Rand, min, max int) int
- type LineReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LineParseInt ¶
func LineParseInt(lr *LineReader) (int, error)
func LineParseIntsN ¶
func LineParseIntsN(lr *LineReader, n int) ([]int, error)
Read line and parse ints.
func NewRandNow ¶
func NewRandSeed ¶
Types ¶
type LineReader ¶
type LineReader struct {
// contains filtered or unexported fields
}
func NewLineReader ¶
func NewLineReader(r io.Reader) *LineReader
func (*LineReader) ReadLine ¶
func (p *LineReader) ReadLine() (string, error)
Click to show internal directories.
Click to hide internal directories.