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