In golang, Is it possible to create a function that takes a struct with the following constraints:
- the struct must not be copied (its relatively big)
- the caller must not be able to pass
nil
EDIT: I tried using pointers but that can be set to null. I can't find any good articles on how to use references and it doesn't seem like I can pass by reference.