github.com/prebid/prebid-server/v2@v2.18.0/modules/generator/builder.tmpl (about) 1 package modules 2 import ( 3 {{- range $vendor, $modules := .}} 4 {{- range $module := $modules}} 5 {{$vendor}}{{$module | Title}} "github.com/prebid/prebid-server/v2/modules/{{$vendor}}/{{$module}}" 6 {{- end}} 7 {{- end}} 8 ) 9 10 // builders returns mapping between module name and its builder 11 // vendor and module names are chosen based on the module directory name 12 func builders() ModuleBuilders { 13 return ModuleBuilders{ 14 {{- range $vendor, $modules := .}} 15 "{{$vendor}}": { 16 {{- range $module := $modules}} 17 "{{$module}}": {{$vendor}}{{$module | Title}}.Builder, 18 {{- end}} 19 }, 20 {{- end}} 21 } 22 }