package service import ( "context" "practice_Go/api/v1/shows" ) type ( IShows interface { GetShowsList(ctx context.Context, req *shows.ShowReq) (res shows.GetShowsListRes, err error) } ) var ( localShows IShows ) func Shows() IShows { if localShows == nil { panic("implement not found for interface IShows") } return localShows } func RegisterShows(i IShows) { localShows = i }