You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would this be useful? Not 100% sure about how/where driver.Valuer would be used, but a making a *client.APIResponse implement the sql.Scanner interface would let users do:
resp, err:=client.Content("Blog", 1)
iferr!=nil {
returnerr
}
// content.Blog is the Blog type imported from user's Ponzu content packagevarsingleBlogPost content.Blogresp.Scan(&singleBlogPost)
// then use singleBlogPost and all it's fieldsfmt.Println("The title of the blog post is:", singleBlogPost.Title)
The text was updated successfully, but these errors were encountered:
Would this be useful? Not 100% sure about how/where
driver.Valuer
would be used, but a making a*client.APIResponse
implement thesql.Scanner
interface would let users do:The text was updated successfully, but these errors were encountered: