Skip to main content

Questions tagged [go]

Use this tag if a question is about the programming language Go

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

Auto update golang version that is defined in a go.mod file using Dependabot

Dependabot has been enabled and is creating PRs, but not for the Golang version that is defined in the go.mod file.
030's user avatar
  • 13.3k
0 votes
1 answer
146 views

Why do some things stringify to their values and others strinigify to a textual representation of the data structure?

This is a follow up to this question. I figured out a solution, but this would have been MUCH easier to debug if the language didn't violate my expectation. So now I'm wondering why it did. Give this ...
Evan Carroll's user avatar
  • 2,391
0 votes
1 answer
35 views

Go format string produces curly brackets around text value?

You can set up the test container to inspect with this, $ podman run -d -p 1234:1234 --name evanrox alpine:3 sleep 360 When I run the following I get { 1234} however I want 1234 (no curly brackets, ...
Evan Carroll's user avatar
  • 2,391
0 votes
1 answer
13 views

Go format string has numbers and special characters in map index?

When I run podman inspect I can get to a map[...] with --format. But indexing through it seems to be impossible. $ podman run -d -p 1234:1234 --name evanrox alpine:3 sleep 360 $ podman inspect ...
Evan Carroll's user avatar
  • 2,391
0 votes
1 answer
41 views

ipfs-update isn't showing the expected version list

I ran go get -u github.com/ipfs/ipfs-update and got in the end of what it looks like an installation going on the following go get: installing executables with 'go get' in module mode is deprecated. ...
Tiago Peres's user avatar
0 votes
1 answer
147 views

Error: error loading plugins: loading plugin /data/ipfs/plugins/go-ds-s3.so: not built with cgo support

After cloning this repo run make build (getting as output s3plugin.so) run make install make the appropriate changes in both /data/ipfs/config "Datastore": { "BloomFilterSize"...
Tiago Peres's user avatar
2 votes
1 answer
628 views

Failed to start windows service with Start Parameter in golang

I've tried to create a executable as a windows service using golang based on example provided in https://github.com/golang/sys/tree/master/windows/svc/example I intended to create auto start service ...
imaheshwaran s's user avatar
0 votes
0 answers
152 views

Is it possible to control Packer from golang?

We use Terraform quite a bit and it has some nice tooling like Terratest where you can essentially call Terraform from within Golang wrapped inside an API with proper error handling. I wonder if ...
Mathis Van Eetvelde's user avatar
1 vote
1 answer
307 views

golang and circle CI setup

Go and devops are both new things for me. I'd like to setup a CI that tests and builds my module, then stores artifacts for download. In addition it'd be good to cache dependencies for next builds. I ...
LukeN's user avatar
  • 11
1 vote
1 answer
215 views

Reuse Alertmanger Slack Integration into Jiralert template

What kind of changes need to be made to a slack template in order to reuse into Jiralert one? Can I utilize the whole body as it is, can somebody post an example of a working resuse, even for the ...
anVzdGFub3RoZXJodW1hbg's user avatar
2 votes
2 answers
7k views

Amazon S3 bucket does not redirect folder URLs to index.html

I have uploaded my HUGO static site into AWS S3 Bucket. I have also added the domain in cloudrfront. The home index.html page works fine, but I cannot access my resources. For example https://www....
workaround's user avatar
23 votes
1 answer
19k views

How do I use docker command's "--format" option?

I can't seem to find any good documentation on how to use the docker command's "--format" option in real life. I know how to use Go templates. But specific to docker, how do I know what placeholders ...
Todd Walton's user avatar
4 votes
1 answer
1k views

What Golang function could be used to enforce a minimum code coverage and return an Exit1 if false?

Follow-up to this Q&A. How to ensure that a certain minimal code coverage is reached in Golang? E.g. if the CI runs, the build should fail if the code coverage is less than X percent. In Java, ...
030's user avatar
  • 13.3k