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
the service running. I have run the service many times and not received this error. not sure why I am all of a sudden getting this now.
What did you see instead?
cannot use bs (type *"company/framework".WebService) as type *"company/utilities/message/vendor/company/framework".WebService in argument to message.SetupMessageService
Hello, and thanks for raising this issue! The type you're passing in is incompatible; on your example SetupMessageService is both a function and a method, so there's probably a mixup there.
That being said, unlike other projects, the Go project doesn't use GitHub Issues for general discussion or questions.
As @tpaschalis has mentioned we don’t use the issue tracker for questions about using go. Also, go 1.10 is beyond the supported window so before we could investigate you should upgrade to go 1.15.2 or later.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release? NA
What operating system and processor architecture are you using (
go env
)? mac osgo env
OutputWhat did you do?
What did you expect to see?
the service running. I have run the service many times and not received this error. not sure why I am all of a sudden getting this now.
What did you see instead?
cannot use bs (type *"company/framework".WebService) as type *"company/utilities/message/vendor/company/framework".WebService in argument to message.SetupMessageService
---- Code snippets ----------
package main
import (
"log"
"company/framework"
"company/utilities/message"
)
func init() {
framework.SetupEnv(framework.ProcessTypeUtilityService)
}
func main() {
bs := framework.NewUtilityService(message.ServiceName)
message.InitializeRequiredServices()
message.SetupMessageService(bs) //line that errors
}
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strings"
"time"
)
// function that error line calls
func SetupMessageService(bs *framework.WebService) {
...
The text was updated successfully, but these errors were encountered: