KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following functions: func (c *Class)A()[4]byte func B(x []byte) I want to call B(c.A()[:]) but I get this error: cannot take the address of c.(*Class).A() How do I properly get a slice of an array returned by a function in Go?
Tags (comma-separated)
Save Edits
Cancel