for _, comment := range comments {
fmt.Printf("New comment:\n%+v\n\n", comment)
db.Exec...
}
_, err = db.Exec("insert into post (ID, postid, name,email, body) values(?, ?, ?, ?, ?)",
comment.ID, comment.Postid, comment.Name, comment.Email, comment.Body)
package main
import (
"fmt"
"github.com/google/uuid"
"yourproject.com/pkg1"
)
func main() {
pkg1.SomeFunc()
fmt.Printf("UUID: %v\n", uuid.Nil)
}