wanted to know how to create an array of structure instance in grule #211
nagarajtrivedi
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a requirement to create an array of structures in golang
type x1 struct {
a string
b string
}
type x2 struct {
c string
d x1
}
I want to create an array of structures of type x2 and initialize it. Let me know how to do it.
Thanks
Nagaraj
Beta Was this translation helpful? Give feedback.
All reactions