Originally created by: trumae
Originally posted by: trumae
Promoted fields act like ordinary fields of a struct except that they cannot be used as field names in composite literals of the struct.
Promoted fields are a problem to initialize structs representing an large component.
Possible solutions:
Log in to post a comment.
Originally posted by: trumae
Promoted fields act like ordinary fields of a struct except that they cannot be used as field names in composite literals of the struct.
Promoted fields are a problem to initialize structs representing an large component.
Possible solutions: