mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
format code
This commit is contained in:
@@ -10,7 +10,7 @@ func StringToInt32(str string) (int, error) {
|
||||
return strconv.Atoi(str)
|
||||
}
|
||||
|
||||
func StringTryToInt32(str string, defaultValue int) int {
|
||||
func StringTryToInt32(str string, defaultValue int) int {
|
||||
num, err := StringToInt32(str)
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user