Skip to content

Instantly share code, notes, and snippets.

@deankarn
Created July 12, 2018 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deankarn/143efa88e93e85421c068e0d182149af to your computer and use it in GitHub Desktop.
Save deankarn/143efa88e93e85421c068e0d182149af to your computer and use it in GitHub Desktop.
Do Things Library Example
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