我有結構的數組(詳細結構在底部)查找轉到陣列
我想找到所有的,例如,腿部與本站符合特定值的結構所有比賽。
因此,如果leg = 101和site = 1024A回退符合這些標準的所有結構。
這樣做的方式是什麼?
type JanusDepth struct {
dataset string
ob string
leg string
site string
hole string
age float64
depth float64
long float64
lat float64
}
你必須循環和測試。就這樣。 –