Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultDelimiter = ','
DefaultDelimiter defines default delimiter expected in encoded data.
Functions ¶
This section is empty.
Types ¶
type CPLEX ¶
type CPLEX struct{}
CPLEX facilitates encoding Data to CPLEX data format.
type JSON ¶
type JSON struct{}
JSON provide methods for encoding and decoding Data structure into/from json.
type Plain ¶
type Plain struct{}
Plain facilitates encoding/decoding Data into CSV-like format. For example: 1,2,3,4,5 6,7,8,9,2 9,4,2,1,0 where the first line is MRB values and further lines are R values.
func (Plain) Decode ¶
Decode allows for decoding data from reader in CSV-like format. It returns an error if the lengths of R slices are not equal to MRB slice length. It is possible to decode data that consists only of MRB values. Input data line should be ended with newline '\n' character, however, it is possible to do not use '\n' in the last line.