2 ms·
Methods' declarations indicate which ones return an error value. E.g.: func Demo (s string) (string, error){...} When called, that is guaranteed to return
by carbocation 14y ago
Methods' declarations indicate which ones return an error value. E.g.:
func Demo (s string) (string, error){...}
When called, that is guaranteed to return a string and an error value (OR nil).