1. Задача: Провести код-ревью предложенного кода
package main
import (
"errors"
"math"
)
type parrotType int
const (
TypeEuropean parrotType = 1 // iota instead of nums
TypeAfrican parrotType = 2
TypeNorwegianBlue parrotType = 3
)
type Parrot interface {
Speed() (float64, error)
}
type mixedParrot struct {
_type parrotType // type instead of _type
numberOfCoconuts int
voltage float64
nailed bool
}
func CreateParrot(t parrotType, numberOfCoconuts…