go get github.com/beego/bee Error install - go

Using the advised install command
go get github.com/beego/bee
Results in the below error:
github.com/gadelkareem/delve/service/rpc2
go/src/github.com/gadelkareem/delve/service/rpc2/client.go:23:5: cannot use &RPCClient literal (type *RPCClient) as type service.Client in assignment:
*RPCClient does not implement service.Client (wrong type for ExamineMemory method)
go/src/github.com/gadelkareem/delve/service/rpc2/server.go:96:52: not enough arguments in call to s.debugger.Restart
Does anyone have an idea on how to solve this?

Refer from this issue, export export GO111MODULE=on before go get.

Related

Can't install gin-gonic: c.engine.AppEngine undefined (type *Engine has no field or method AppEngine)

I can't install gin-gonic for my golang project. I tried reinstalling go, resetting the bash files, delete and recreate the project folder, and searched the error as keyword on google, but found nothing
Here are my terminal messages:
$ go get -u github.com/gin-gonic/gin
# github.com/gin-gonic/gin
..\..\..\..\go\pkg\mod\github.com\gin-gonic\gin#v1.7.5\context.go:735:13: c.engine.AppEngine undefined (type *Engine has no field or method AppEngine)
..\..\..\..\go\pkg\mod\github.com\gin-gonic\gin#v1.7.5\gin.go:154:3: unknown field 'UseRawPath' in struct literal of type Engine
..\..\..\..\go\pkg\mod\github.com\gin-gonic\gin#v1.7.5\gin.go:156:3: unknown field 'UnescapePathValues' in struct literal of type Engine
..\..\..\..\go\pkg\mod\github.com\gin-gonic\gin#v1.7.5\gin.go:508:11: engine.UseRawPath undefined (type *Engine has no field or method UseRawPath)
..\..\..\..\go\pkg\mod\github.com\gin-gonic\gin#v1.7.5\gin.go:510:20: engine.UnescapePathValues undefined (type *Engine has no field or method UnescapePathValues)
I downgraded to v1.7.2 and everything worked well. Take a look at https://github.com/gin-gonic/gin/issues/2948
I have the same problem when using gin#v1.7.5, so I downgrade to gin#v1.7.4, and it works well
I had the same problem. but I resolve it with root on ubuntu. Similarly, It'd be good to execute with "run as administrator"

Trouble with installing the package telescope-posts

I am trying to get rid of the character/text limit which is found in the package https://github.com/TelescopeJS/Telescope/tree/master/packages/telescope-posts.
I tried just doing "meteor add telescope-posts" but I received the error:
=> Errors while parsing arguments:
While adding package telescope-posts:
error: no such package
I then tried to create a package but when I enter ".meteor/packages" or "myProjectName/.meteor/packages" I receive:
-bash: .meteor/packages: Permission denied
Any help on how to install the package telescope-posts is greatly appreciated. Thank you.
Have you tried this:
meteor add telescope:posts
More likely, you should look at: https://telescope.readme.io/v0.20/docs/installing-telescope

golang error: reference to undefined identifier ‘syscall.TUNSETIFF’

So, I have been trying to build flannel (https://github.com/coreos/flannel) with gccgo. Here is the error I am getting while building:
$ ./build
Building flanneld...
# github.com/coreos/flannel/pkg/ip
gopath/src/github.com/coreos/flannel/pkg/ip/tun.go:57:37: error: reference to undefined identifier ‘syscall.TUNSETIFF’
err = ioctl(int(tun.Fd()), syscall.TUNSETIFF, uintptr(unsafe.Pointer(&ifr)))
^
I am using gccgo-5 and gcc-5. Can anyone please help me figure out what exactly is the issue here? TIA
So, I found the answer. The problem was that gccgo didn't define TUNSETIFF for my arch. I defined the value accordingly and I was able to make it work. Thanks #JimB

Can't build go project in travis

I started to create a very light weight message broker to practice go, travis and some aws services all in one project.
My current problem is that I can build, run and test my develop branch on my local machine however when travis attempts to build it I get a compile error. The code it doesn't like came straight from AWS examples to further deepen the mystery for me.
Travis failed build
https://travis-ci.org/hevnly/eevy/builds/65687886
Github repo https://github.com/hevnly/eevy/tree/92412cf729ed546d698ded1e514d2d54c340ff81
Error
handler/lambda.go:31: cannot use "github.com/awslabs/aws-sdk-go/aws".Config literal (type *"github.com/awslabs/aws-sdk-go/aws".Config) as type *"github.com/aws/aws-sdk-go/aws".Config in argument to lambda.New
handler/sqs.go:26: cannot use "github.com/awslabs/aws-sdk-go/aws".Config literal (type *"github.com/awslabs/aws-sdk-go/aws".Config) as type *"github.com/aws/aws-sdk-go/aws".Config in argument to sqs.New
Sample of code
svc := lambda.New(&aws.Config{Region: "eu-west-1"})
Ok, I have just tried to go get your repo and got the same error:
handler/lambda.go:29: cannot use "github.com/awslabs/aws-sdk-go/aws".Config literal (type *"github.com/awslabs/aws-sdk-go/aws".Config) as type *"github.com/aws/aws-sdk-go/aws".Config in argument to lambda.New
handler/sqs.go:26: cannot use "github.com/awslabs/aws-sdk-go/aws".Config literal (type *"github.com/awslabs/aws-sdk-go/aws".Config) as type *"github.com/aws/aws-sdk-go/aws".Config in argument to sqs.New
I advice you to start using a dependency manager, so you will fix your dependencies inside your repo and have reproducible builds in any place.
My recommendation is Godep, but there are others out there.

MAC go get github.com/go-gl/gl

On MAC i am trying to setup GO-GL, but when i run
go get github.com/go-gl/gl
I get the following error:
In file included from src/github.com/go-gl/gl/attriblocation.go:7:./gl.h:2:10: fatal error: 'GL/glew.h' file not found
Someone please help me figure this out!
Unless you have a good reason not to, you should use go-gl/glow package instead of go-gl/gl. It will provide you and your users with a better experience.
https://github.com/go-gl/glow#glow

Resources