Skip to content

Commit

Permalink
feat: solve fakeu
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Oct 31, 2023
1 parent 72671d7 commit e4c1a78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
)

type Configuration struct {
IsDebug bool `env:"IS_DEBUG"`
BaseUrl string
isDebug bool `env:"IS_DEBUG"`

Check failure on line 10 in configuration/configuration.go

View workflow job for this annotation

GitHub Actions / lint

field `isDebug` is unused (unused)
baseUrl string
//RestClient *resty.Client
}

Expand All @@ -19,7 +19,7 @@ func GetConfiguration() *Configuration {
panic("failed to read configuration")
}
//
configuration.BaseUrl = routes.BASE_URL
configuration.baseUrl = routes.BASE_URL
//
return &configuration
}
5 changes: 5 additions & 0 deletions fakeyou/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ func (f *Builder) Build() []string {
return args
}


func (f *fakeyou) IsDebug() bool {
return f.configuration.IsDebug

Check failure on line 21 in fakeyou/builder.go

View workflow job for this annotation

GitHub Actions / build (1.18.x)

f.configuration.IsDebug undefined (type *configuration.Configuration has no field or method IsDebug)

Check failure on line 21 in fakeyou/builder.go

View workflow job for this annotation

GitHub Actions / build (1.19.x)

f.configuration.IsDebug undefined (type *configuration.Configuration has no field or method IsDebug)

Check failure on line 21 in fakeyou/builder.go

View workflow job for this annotation

GitHub Actions / build (1.19.x)

f.configuration.IsDebug undefined (type *configuration.Configuration has no field or method IsDebug)

Check failure on line 21 in fakeyou/builder.go

View workflow job for this annotation

GitHub Actions / build (1.20.x)

f.configuration.IsDebug undefined (type *configuration.Configuration has no field or method IsDebug)

Check failure on line 21 in fakeyou/builder.go

View workflow job for this annotation

GitHub Actions / build (1.20.x)

f.configuration.IsDebug undefined (type *configuration.Configuration has no field or method IsDebug)
}

// Resty Methods

func (f *fakeyou) restyPost(url string, body interface{}) (*resty.Response, error) {
Expand Down
2 changes: 2 additions & 0 deletions fakeyou/fakeyou.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
)

type IFakeYou interface {
//
IsDebug() bool
// voice api
GetListOfVoices() (*ResponseVoice, error)
GetListOfVoiceCategories() (*ResponseVoiceCategories, error)
Expand Down

0 comments on commit e4c1a78

Please sign in to comment.