func IncStr(i interface{}) interface{} {
	trimmed := strings.TrimRight(i.(string), "\n")
	ii, err := strconv.Atoi(trimmed)
	if err != nil {
		panic(err)
	}
	return ii + 1
}
Given a string, converts it to an integer, increments it, and returns the
incremented number
package main
import (
	"bufio"
	"fmt"
	"io"
	"os"
	"strconv"
	"strings"
	"github.com/mediocregopher/seq"
)
type SeqIoReader struct {
	reader *bufio.Reader
	delim  byte
}
func NewSeqIoReader(read io.Reader, delim byte) *SeqIoReader {
	return &SeqIoReader{
		reader: bufio.NewReader(read),
		delim:  delim,
	}
}
func (sir *SeqIoReader) FirstRest() (interface{}, seq.Seq, bool) {
	data, err := sir.reader.ReadString(sir.delim)
	if err != nil {
		return nil, nil, false
	}
	return data, sir, true
}