9 func SendSMS(user, pass, msg string) error {
11 "user": []string{user},
12 "pass": []string{pass},
16 response, err := http.Get(fmt.Sprintf("https://smsapi.free-mobile.fr/sendmsg?%s", form.Encode()))
21 if response.StatusCode != 200 {
22 return fmt.Errorf("Cannot send sms: status code %v", response.StatusCode)