Versions in this module Expand all Collapse all v0 v0.1.0 Jul 28, 2026 Changes in this version + const DefaultURL + var ErrBadValid = errors.New("smsc: invalid period for valid") + var ErrLongText = errors.New("smsc: too long text to send") + var ErrNoLoginPassword = errors.New("smsc: empty login or password") + var ErrNoPhones = errors.New("smsc: empty phones list") + func CountBytes(text string) int + type Client struct + func New(cfg Config) (*Client, error) + func (c *Client) Send(text string, phones []string, opts ...Opt) (*Result, error) + type Config struct + Client *http.Client + Login string + Opt Opt + Password string + PasswordMD5 string + URL string + type Cost int + const CostCount + const CostCountBalance + const CostWithoutSend + type ErrOpt int + const Err + type Error struct + Code int + Desc string + ID *int + func (e *Error) Error() string + type OpOpt int + const Op + type Opt func(*message) + func Sender(s string) Opt + func Valid(h, m int) Opt + func With(v ...interface{}) Opt + type Phone struct + Cost string + Error *string + Mccmnc string + Phone string + Status *string + type Result struct + Balance *string + Cost *string + Count int + ID int + Phones []Phone + func (r *Result) String() string + type TranslitOpt int + const Translit + const TranslitKlinopis