Scan Query 2 Arguments

i have 2 query

i have 2 query

 selDB, err := db.Query(`SELECT grup_master_code.nama_group FROM grup_master_code
                        SELECT master_code.item_code FROM master_code`)

and when i scan that query, i have error

sql: expected 1 destination arguments in Scan, not 2

Code Scan

var nama_grup, item_code string
err = selDB.Scan(&nama_grup, &item_code)

Go Programming Tutorial - Real World Advice for Building Go Projects - Practical Go

Go is a language designed for engineering teams. Its central themes are simplicity, readability, and maintainability. This workshop will provide best practice real world advice for teams building projects in Go covering five areas: - Idiomatic code - Package and API design - Error handling - Concurrency - Testing

Thanks for reading

If you liked this post, share it with all of your programming buddies!

Follow us on Facebook | Twitter

Further reading about Go Programming

Learn How To Code: Google's Go (golang) Programming Language

Moving from NodeJS to Go

Building a chat widget with Go and JavaScript

Building Modern Desktop Apps in Go

Why Go Is Perfect For DevOps

Go for DevOps, Go for Microservices, and what Go is Actually Good For