Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のような 10 台の車を含む構造体のスライスがあります。
type struct car { engine window wheel }
したがって、スライスの車には 10 個の車の構造体が含まれます。
次のような関数が存在するかどうかを知りたいです。
var engines string[] = cars.Getfield("engine") // engines will contain 10 engines names