I have created a new sqs client using Go SDK for SQS
svc := sqs.New(sess)
Now what will be the signature of the function which accepts this svc as a parameter ?
I tried func(svc *SQS)
and func(svc SQS)
, but its not working.
In the documentation its mentioned that SQS.new(session)
returns a *SQS
type. What should be the type of svc then ?