Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONString ¶
type JSONString string
JSONString is a string containing JSON encoded data, it prevents further json encoding when used inside a struct that gets encoded cant' use json.RawMessage because of:sql: Scan error on column index 1, name "processes": unsupported Scan, storing driver.Value type string into type *json.RawMessage
func (JSONString) MarshalJSON ¶
func (js JSONString) MarshalJSON() ([]byte, error)
func (*JSONString) UnmarshalJSON ¶
func (js *JSONString) UnmarshalJSON(data []byte) error
type StringSlice ¶
type StringSlice []string
StringSlice is used for storing string slice in sqlite
func (*StringSlice) Scan ¶
func (s *StringSlice) Scan(value interface{}) error
type TimeJSON ¶
TimeJSON is a wrapped time value that will marshal and unmarshal zero time to JSON as an empty string
func EmptyTimeJSON ¶
func EmptyTimeJSON() (nilTime TimeJSON)
func NewTimeJSON ¶
func (*TimeJSON) MarshalJSON ¶
func (*TimeJSON) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.