Questions tagged [glide-golang]

Glide is obsolete, use Go Modules instead! Glide is a package manager for Go that is conceptually similar to package managers for other languages such as Cargo for Rust, NPM for Node.js, Pip for Python, Bundler for Ruby, and so forth.

!! Don't use Glide !!

Glide has been obsoleted by Go Modules for many years now. Use Go Modules instead.

Homepage

Github

Documentation

132 questions
-1
votes
1 answer

Golang Undefined

I'm trying to compile my application in Go and I'm getting the following errors: C:\Users\Root\go\src\github.com\ussssseeeeeeerrr\test> go build # github.com/facebookgo/grace/gracehttp ..\..\facebookgo\grace\gracehttp\http.go:104:53: undefined:…
-1
votes
2 answers

cannot find package "github.com/user../../" in golang while building

I am trying to build a project from github source code. I have found some source code importing a package something like below: import ( "os" "github.com/bivas/rivi/commands" "github.com/mitchellh/cli" ) However, while building a…
Baba ramdev
  • 61
  • 1
  • 3
-1
votes
1 answer

Glide package manager usage

I'm using Glide to manage my golang dependencies, but when trying to build my project on a clean environment, the vendor directory is being ignore: ./glide install [INFO] Downloading dependencies. Please wait... [INFO] --> Found desired version…
jaxxstorm
  • 12,422
  • 5
  • 57
  • 67
-2
votes
1 answer

Pick the random value from slice and print on cli

How to pick the random value from slice in golang and i need to display it to cli.I have string which i converted to string array by splitting it. Now i want to choose random string from string array and display to user in cli and i need to ask user…
Nagaraj M
  • 387
  • 1
  • 5
  • 16
-3
votes
0 answers

Golang database fetch issue in postgresql

Table structure for the database From the above you can see the columns of the database When I fetch the url with particular ID I get an error like Url error and return error enter image description here There shouldn't be any error in gotoneurl()…
-3
votes
1 answer

How to capture anonymous keys coming in JSON response and store in struct?

I am new to Go and stuck at unmarshelling json data. Facing trouble while unmarshelling JSON to struct for the response json that is getting returned as response. The key for the couple of inner variables are anonymous. Thus unmarshelling them gives…
-3
votes
1 answer

How to Convert Map of Data to XML File

InformationUser:[{ "informationUser.availabiltyStartDate:"09/10/2019 23:56:19", "informationUSer.avaialblilityEndDate:"28/11/2019 21:19:16", }]
GeekyBoy
  • 15
  • 6
-3
votes
1 answer

can't find attrmgr (from $GOROOT) and $GOPATH?

I am trying to install chaincode. I used cid package inside my chaincode When I try to install chaincode, I got the following error: cannot load package: package github.com/hyperledger/fabric/core/chaincode/lib/cid: cannot find package…
Amy Lee
  • 11
  • 6
-3
votes
1 answer

Interface typecasting not working

func GetResult (service interface{}) { switch v := service.(type) { case services.Account: service = service.(services.Account) default: service = service.(Mock_Account) } res, err := service.GetAccount() } It…
Anupam Somani
  • 224
  • 1
  • 7
  • 17
-4
votes
1 answer

Glide installing issue

Installing glide is failing: Step 3/17 : RUN curl https://glide.sh/get | sh ... Step 5/17 : RUN glide install ... /bin/sh: 1: glide: not found The command '/bin/sh -c glide install' returned a non-zero code: 127 When I access https://glide.sh/get,…
Roman Newaza
  • 11,405
  • 11
  • 58
  • 89
-6
votes
2 answers

wrong output golang, what is wrong in my go code?

the output should be a valid number not 0 but i get 0 as output, i looked every where, docs, stackoverflow, gfg and i didn;t find anything, please help me. this is my code, please help (the output must be 'weight / (height * height)* 10000)) package…
NOT kar1m yt
  • 188
  • 3
1 2 3
8
9