Created
July 12, 2018 16:04
-
-
Save deankarn/143efa88e93e85421c068e0d182149af to your computer and use it in GitHub Desktop.
Do Things Library Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lib | |
import ( | |
"errors" | |
"strings" | |
) | |
// DoThings ... | |
func DoThings(s string) error { | |
if strings.Contains(s, "thing") { | |
return nil | |
} | |
return errors.New("error doing things") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment