package main import ( "git.luzifer.io/luzifer/publish-vod/pkg/uploader" "git.luzifer.io/luzifer/publish-vod/pkg/uploader/sftp" "git.luzifer.io/luzifer/publish-vod/pkg/uploader/youtube" ) func uploaderByName(name string) uploader.Uploader { switch name { case "sftp": return sftp.New() case "youtube": return youtube.New() default: return nil } }