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.Uploader{} case "youtube": return youtube.Uploader{} default: return nil } }