pull/2/head
parent
7291a43e68
commit
cb0d574a76
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue