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