diff options
| author | Shulhan <ms@kilabit.info> | 2019-06-14 19:02:22 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2019-06-14 19:02:22 +0700 |
| commit | 8d5ffba2d9483f049385d37bc468f2a114548eb0 (patch) | |
| tree | f545e93345f3c4273ec1b962f797bdcbc20dc80b /lib/smtp/smtp.go | |
| parent | 381a0c6e6dfc702ffbbd398abaae356f4e075a0e (diff) | |
| download | pakakeh.go-8d5ffba2d9483f049385d37bc468f2a114548eb0.tar.xz | |
ascii: new library for working with ASCII characters
This library previously part of bytes package. To make it bytes package
consistent (only working with slice of byte), we move all ASCII related
constants, variables, and functions into new package.
Diffstat (limited to 'lib/smtp/smtp.go')
| -rw-r--r-- | lib/smtp/smtp.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/smtp/smtp.go b/lib/smtp/smtp.go index 9705be89..072f3b66 100644 --- a/lib/smtp/smtp.go +++ b/lib/smtp/smtp.go @@ -8,7 +8,7 @@ import ( "bytes" "errors" - libbytes "github.com/shuLhan/share/lib/bytes" + "github.com/shuLhan/share/lib/ascii" ) // List of SMTP status codes. @@ -204,7 +204,7 @@ func parseLocalDomain(data []byte, allow []byte) (out []byte) { out = append(out, '.') isDot = false } - if libbytes.IsAlnum(data[x]) { + if ascii.IsAlnum(data[x]) { out = append(out, data[x]) continue } |
