flashmob / go-guerrilla

Mini SMTP server written in golang
MIT License
2.76k stars 361 forks source link

Fix conversions to work with Go 1.15 #223

Closed batterystaples closed 3 months ago

batterystaples commented 3 years ago

As described in https://github.com/golang/go/issues/32479, as of Go 1.15, a warning will be raised when a program attempts to use a string(int) type conversion. For this project, this causes "make test" to fail. This pull request uses strconv methods to convert the values instead, which causes the warning to no longer appear. This pull request fixes #218.

phires commented 3 months ago

function has been redesigned