mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-19 08:01:16 +00:00
20 lines
266 B
Go
20 lines
266 B
Go
package tz
|
|
|
|
type TzService interface {
|
|
Timezones() []TimezoneOption
|
|
}
|
|
|
|
type tzService struct {
|
|
client *Client
|
|
}
|
|
|
|
func NewService() TzService {
|
|
return &tzService{
|
|
client: NewTZ(),
|
|
}
|
|
}
|
|
|
|
func (s *tzService) Timezones() []TimezoneOption {
|
|
return s.client.Get()
|
|
}
|