Original post

What do you mean? Like a value and an error? Like the standard practice? i.e.

file, err := os.Open("/tmp/foo.txt")
if err != nil {
    log.Printf("could not open file /tmp/foo.txt: %v",err)
// do things with file...

The other things could be to return different things, like the position as x, and y values. etc…

edit: fixed spelling and grammar