Replace prazdnikisegodnyaru with celebratoday, small underhood fixes
- Replace prazdnikisegodnyaru with celebratoday as first is banned in Russia - Update .golangci.yml rule set - Megatons of fixes for linter - Update README.md
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Package oboobs implements api.oboobs.ru service client.
|
||||
package oboobs
|
||||
|
||||
import (
|
||||
@@ -9,14 +10,16 @@ import (
|
||||
"github.com/carlmjohnson/requests"
|
||||
)
|
||||
|
||||
// Oboobs структура, возвращаемая на запрос в oboobs.ru.
|
||||
type Oboobs struct {
|
||||
ID int `json:"id,omitempty"`
|
||||
Author string `json:"author,omitempty"`
|
||||
Rank int `json:"rank,omitempty"`
|
||||
Model string `json:"model,omitempty"`
|
||||
Preview string `json:"preview"`
|
||||
}
|
||||
type (
|
||||
// Oboobs структура, возвращаемая на запрос в oboobs.ru.
|
||||
Oboobs struct { //nolint: govet // Идите в пень, мне так удобнее.
|
||||
ID int `json:"id,omitempty"`
|
||||
Author string `json:"author,omitempty"`
|
||||
Rank int `json:"rank,omitempty"`
|
||||
Model string `json:"model,omitempty"`
|
||||
Preview string `json:"preview"`
|
||||
}
|
||||
)
|
||||
|
||||
// APIClient клиент сервиса oboobs.ru.
|
||||
func APIClient(cfg *config.MyConfig) (string, error) {
|
||||
|
||||
Reference in New Issue
Block a user