forked from go/golangs_learn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
305 B
13 lines
305 B
3 years ago
|
package models
|
||
|
|
||
|
type GenericEntry struct {
|
||
|
Type string `json:"type"`
|
||
|
Source string `json:"source"`
|
||
|
Track GenericTrack `json:"track"`
|
||
|
Playlist GenericPlaylist `json:"playlist"`
|
||
|
}
|
||
|
|
||
|
func NewGenericEntry(source string) *GenericEntry {
|
||
|
return &GenericEntry{Source: source}
|
||
|
}
|