SELECT query on unique number field returns no rows
The problem was solved when I changed the MegaHerz field's data type in the golang struct definition from a float64 to a decimal.Decimal.

type Frequency struct {
    ID          uint
    MegaHerz    decimal.Decimal `gorm:"unique;not null;type:numeric(7,3)"`
    Packets     []Packet
}


You do however need to include a third party library for the decimal.Decimal fixed point type.

import "github.com/shopspring/decimal"