-
Notifications
You must be signed in to change notification settings - Fork 0
/
wire_gen.go
40 lines (32 loc) · 856 Bytes
/
wire_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Code generated by Wire. DO NOT EDIT.
//go:generate wire
//+build !wireinject
package youtube
import (
"github.com/colinfike/yougo-premium/internal/config"
"github.com/google/wire"
)
// Injectors from wire.go:
func InitializeWrapper() (*Wrapper, error) {
configConfig := config.NewConfig()
youtubeYoutubeClient, err := NewYoutubeClient(configConfig)
if err != nil {
return nil, err
}
wrapper, err := NewWrapper(youtubeYoutubeClient)
if err != nil {
return nil, err
}
return wrapper, nil
}
func InitializeYoutubeClient() (*youtubeClient, error) {
configConfig := config.NewConfig()
youtubeYoutubeClient, err := NewYoutubeClient(configConfig)
if err != nil {
return nil, err
}
return youtubeYoutubeClient, nil
}
// wire.go:
var NewYoutubeClientSet = wire.NewSet(
NewYoutubeClient, wire.Bind(new(client), new(*youtubeClient)))