vilmibm 2023-03-15 08:13:44 +00:00
parent 7291a43e68
commit cb0d574a76
1 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,10 @@ func main() {
errs := []error{} errs := []error{}
signups := make([]jsonSignup, len(lines)) signups := make([]jsonSignup, len(lines))
for i, l := range lines { for i, l := range lines {
l = strings.TrimSpace(l)
if l == "" {
continue
}
s := jsonSignup{} s := jsonSignup{}
err := json.Unmarshal([]byte(l), &s) err := json.Unmarshal([]byte(l), &s)
if err != nil { if err != nil {