Example #1
0
func init() {
	protocol.Register("bandcamp", []string{"URL"}, New, reflect.TypeOf(&Bandcamp{}))
	gob.Register(new(Bandcamp))
}
Example #2
0
func init() {
	protocol.Register("file", []string{"directory"}, New, reflect.TypeOf(&File{}))
	gob.Register(new(File))
}
Example #3
0
func init() {
	protocol.Register("stream", []string{"URL"}, New, reflect.TypeOf(&Stream{}))
	gob.Register(new(Stream))
}
Example #4
0
func init() {
	gob.Register(new(GMusic))
	protocol.Register("gmusic", []string{"username", "password"}, New, reflect.TypeOf(&GMusic{}))
}