DNS over QUIC (=DoQ, as defined in RFC9250) client library written in Golang and built on top quic-go and dns libraries.
add dependency
go get github.com/tantalor93/doq-go
// create new DoQ Client
client, err := doq.NewClient("dns.adguard-dns.com:853", doq.Options{})
if err != nil {
panic(err)
}
// create new query
q := dns.Msg{}
q.SetQuestion("www.google.com.", dns.TypeA)
// send query
var resp *dns.Msg
resp, err = client.Send(context.Background(), &q)
fmt.Println(resp ,err)