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 randomfox implements randomfox.ca service client.
|
||||
package randomfox
|
||||
|
||||
import (
|
||||
@@ -10,11 +11,13 @@ import (
|
||||
"github.com/carlmjohnson/requests"
|
||||
)
|
||||
|
||||
// RandomFox структура, возвращаемая на запрос в randomfox.ca API.
|
||||
type RandomFox struct {
|
||||
Image string `json:"image,omitempty"`
|
||||
Link string `json:"link"`
|
||||
}
|
||||
type (
|
||||
// RandomFox структура, возвращаемая на запрос в randomfox.ca API.
|
||||
RandomFox struct {
|
||||
Image string `json:"image,omitempty"`
|
||||
Link string `json:"link"`
|
||||
}
|
||||
)
|
||||
|
||||
// APIClient клиент сервиса randomfox.ca.
|
||||
func APIClient(cfg *config.MyConfig) (string, error) {
|
||||
|
||||
Reference in New Issue
Block a user