Documentation ¶
Index ¶
- Constants
- func DeserializeAndUpdateSessionsFromYAML(buf *bytes.Buffer, sessions *[]Session) error
- func DeserializeClientFromYAML(buf *bytes.Buffer, client *Client) error
- func DeserializeSessionsFromYAML(buf *bytes.Buffer) (*[]Session, error)
- func SerializeSessionsToCSV(sessions []Session) (*bytes.Buffer, error)
- func SerializeSessionsToFullCSV(session []Session) (*bytes.Buffer, error)
- func SerializeSessionsToYAML(sessions []Session) (*bytes.Buffer, error)
- type Client
- type EditableSession
- type Session
- func (s Session) Conflicts(session Session) bool
- func (s Session) Duration() string
- func (s Session) Earnings() (float64, error)
- func (s Session) Equals(session Session) bool
- func (s Session) Finished() bool
- func (s Session) Matches(session Session) bool
- func (s Session) SerializeYAML() (*[]byte, error)
- func (s Session) Similar(session Session) bool
- func (s Session) String() string
Constants ¶
View Source
const (
YAML_SERIALIZATION_SEPARATOR = "---\n"
)
Variables ¶
This section is empty.
Functions ¶
func SerializeSessionsToCSV ¶
Types ¶
type Client ¶
type EditableSession ¶
type EditableSession struct { ID string `yaml:"id"` Client string `yaml:"client"` Date string `yaml:"date"` StartTime string `yaml:"start_time"` EndTime string `yaml:"end_time"` Note string `yaml:"note"` }
func (EditableSession) ToSession ¶
func (ed EditableSession) ToSession() (*Session, error)
type Session ¶
func (Session) SerializeYAML ¶
Click to show internal directories.
Click to hide internal directories.