Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeTextKey ¶
Types ¶
type Account ¶
type Account struct {
Name string `csv:"name"`
AcctId string `csv:"acc_id"`
Interval *uint `csv:"interv"`
Key RawKey `csv:"key"`
}
All fields must be public because of the marshaller
func NewFromTextKey ¶
func (Account) GetInterval ¶
Interval default checking thunk. Account.Interval must still be public though, as the marshaller requires all fields be public
type RawKey ¶
type RawKey []byte
go treats a simple typedef as a different type: e.g. `type MyInt int` creates my own int, but it is not interchangeable with the real int and must be explicitly casted. additionally, i can actually implement methods for, and embed my phony int into other stucts
func DecodeTextKey ¶
func (*RawKey) MarshalCSV ¶
Implement gocsv's CSVMarshaler
func (*RawKey) UnmarshalCSV ¶
Implement gocsv's CSVUnmarshaler
Click to show internal directories.
Click to hide internal directories.