snapshot.go
func (client *Client) SnapshotGeneric(options map[string]string, start, end time.Time) (string, error) {
	v := url.Values{}
	v.Add("start", fmt.Sprintf("%d", start.Unix()))
	v.Add("end", fmt.Sprintf("%d", end.Unix()))

	for opt, val := range options {
		v.Add(opt, val)
	}

	return client.doSnapshotRequest(v)
}
func (client *Client) SnapshotGeneric(options map[string]string, start, end time.Time) (string, error) {
	v := url.Values{}
	v.Add("start", fmt.Sprintf("%d", start.Unix()))
	v.Add("end", fmt.Sprintf("%d", end.Unix()))

	for opt, val := range options {
		v.Add(opt, val)
	}

	return client.doSnapshotRequest(v)
}
func ( client * Client ) SnapshotGeneric ( options map [ string ] string , start , end time . Time ) ( string , error ) { v := url . Values { } v . Add ( " " , fmt . Sprintf ( " " , start . Unix ( ) ) ) v . Add ( " " , fmt . Sprintf ( " " , end . Unix ( ) ) ) for opt , val := range options { v . Add ( opt , val ) } return client . doSnapshotRequest ( v ) }
// Generic function for snapshots, use map[string]string to create url.Values() instead of pre-defined params
Generic function for snapshots use map [ string ] string to create url . Values () instead of pre - defined params