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

Why 'go vet' failing with go build.... signal: killed error?

We are using The Kubernetes executor for GitLab Runner, as part of GitLab CI Go vet is failing with error--go build github.com/hashicorp/cdktf-provider-aws-go/aws/v9/wafv2: /usr/local/go/pkg/tool/linux_amd64/compile: signal: killed I tried…
Krishna
  • 11
  • 2
-1
votes
1 answer

Go Package installed but not able to import

Not able to import the gorilla/mux package even though it is installed. i used the command "go get github.com/gorilla/mux" to install the package which installed the package under the pkg directory as per the GOPATH as…
-1
votes
1 answer

Exporting dependencies from package which is existing vendor

I am new to golang and glide dependency management tool. I am trying to run glide install in created my company project. I have met an error about go-xorm library. [ERROR] Update failed for github.com/go-xorm/xorm: Unable to get repository: Cloning…
-1
votes
1 answer

golang json converts int to float. What can i do

Here is my code. I'm reading from a JSON file and want to insert the value into my global variable mode. jsonFile, err := os.Open("config.json") if err != nil { log.Fatal(err) return err } //byteValue, _ := ioutil.ReadAll(jsonFile) var…
BigBoy
  • 11
  • 1
-1
votes
1 answer

Directly reading files from AWS S3 without downloading json files in Golang

I am trying to develop a web application that parses JSON file AWS S3, Finally, save my local database. I don't save JSON files on my local machine. I want to read the JSON files directly from S3. Now I'm struggling to read JSON files, I cant read…
-1
votes
1 answer

What is wrong with this following code which throw pointer error

Could anyone tell me what's wrong with this code? package main import "fmt" type Document struct{ testString string } type Printer interface{ Print(d *Document) } type Scanner interface{ Scan(d *Document) } type MultiFunctionMachine…
DSL
  • 31
  • 4
-1
votes
1 answer

How can I check the data generated by gorm raw statement?

I created data with golang gorm, I need to form a relationship in another table based on the generated data id, but I don't know how to check the generated data, how can I check the generated data? func DefaultMapCreate(userId uint) *model.Map { …
Choi yun seok
  • 309
  • 2
  • 15
-1
votes
2 answers

Convert string representing hex number to ipv6

I have this string representing hex: 00000000ff00ff00000900000600020a I'm trying to convert it to IPv6 with net package the result I'm expecting is(big endian): 20a:600::9:ff00:ff00:: I tried this: ip := "00000000ff00ff00000900000600020a" …
yunger
  • 27
  • 4
-1
votes
1 answer

https://gonum.org/v1/gonum Not Found

gonum.org/v1/gonum is not being recognized as a go package. glide get gonum.org/v1/gonum is erroring out $> go get gonum.org/v1/gonum can't load package: package gonum.org/v1/gonum: no Go files in /home/binet/dev/go/gocode/src/gonum.org/v1/gonum
Ami
  • 327
  • 2
  • 7
-1
votes
1 answer

Missing Field or method Signature Scheme in autocert on arm

I am writing a program in go which makes an HTTP request to different server and reads the response. The program works absolutely fine on Windows/Mac but when I run the program on ARM based Rasp Pi 3 with Rasbian OS, it fails. Every-time I try to…
Kumar Vivek
  • 351
  • 7
  • 30
-1
votes
1 answer

Can we parameterize a glide.yaml file?

This is the glide.yaml file from the official documentation package: github.com/Masterminds/glide homepage: https://masterminds.github.io/glide license: MIT owners: - name: Matt Butcher email: technosophos@gmail.com homepage:…
Hemant Pandey
  • 163
  • 2
  • 2
  • 10
-1
votes
1 answer

install go-ethereum dependencies and tendermint dependencies with glide

I'm using "glide" to manage my go packages, here is my glide.yaml: package: github.com/my-project import: - package: github.com/ethereum/go-ethereum version: 1.8.14 subpackages: - cmd/utils - common - common/hexutil - consensus/ethash …
SinTan1071
  • 53
  • 9
-1
votes
1 answer

glide update empties glide.lock

In my golang project, glide update command clears out my glide.lock file instead of updating my dependencies. Can anyone help? Let me explain in details. My golang project is set up correctly, 1. I am on Windows 2. source code is under…
Bigman
  • 1,363
  • 11
  • 17
-1
votes
1 answer

Running golang web server in background

What is the simplest way to run a go server in the background? I currently have the server running in CMD and would rather not change the actual code.
-1
votes
1 answer

How to Receive multipart from the client in golang?

Here my code and output: func RestClient(req *http.Request) { fmt.Println("main (120):::", req.MultipartForm.File) } main (120)::: &{map[userName:[0xc4200a66e0] diamond:[0xc4200f67b0] ]} for k,v := range req.MultipartForm.File{ …
Hamed M
  • 329
  • 2
  • 10
1 2 3
8
9