I've written a small php script to retrieve all the users in a certain group and obtain two values, username and employeeid. Unfortunately, the second field is
I am using github.com/gocraft/work for creating cron jobs. My server time is in UTC and I want cron job to be executed based on specific timezone, is there any
I have a problem with connecting the MongoDB to an API that is written in Golang. If you can help me, I would be really grateful. I don't find anything when I g
I use this code to show related posts in the same sections for posts in /content/posts. However, the code stops working when I move the content to a nested sect
The regexp.FindStringIndex(s string, n int) []int function returns byte indices of matches. In simple scenarios, these locations correspond to the "character p
type Product struct { ID string `json:"id"` Name string `json:"name"` Area string `json:"area"` OwnerName string `json:"own
I want to install the gqrcode project and get from that project the following installation instructions: go get -u github.com/KangSpace/gqrcode When performing
I try to pass argument $1 to jsonpath-expression: SELECT 1 FROM %s.orders AS O WHERE order_info @? '$.items[*] ? (@.ProductID == $1)' but it doesn't work. P
I have read about "https://github.com/golang/go/issues/25484" about no-copy conversion from []byte to string. I am wondering if there is a way to convert a str
I've installed Go 1.13.4 in Debian Linux 10 using brew, package golang (previously I've removed golang-1.11 installed via apt). It follows brew info output. $
I'm trying to use Go's reflection system to retrieve the name of a function but I get an empty string when calling the Name method on its type. Is this the expe
Golang - extract links using regex I need to get all links from text which are in specific domain example.de using Regex in Go Below are all possible links that
I recently started using Go. I installed go's extension on vscode and I can use some commands like go run and go build but when I run go test I get the followin
I have found myself writing the same function X number of times to get different types of Items out of my go-cache. The duplicate functions ar
I want to write regex to recgonize a hex string with length of 16 bytes, for example: 1a2b3c4d1a2b3c4d The following answers is NOT correct: [0-9a-fA-F]{16} b
I want to write regex to recgonize a hex string with length of 16 bytes, for example: 1a2b3c4d1a2b3c4d The following answers is NOT correct: [0-9a-fA-F]{16} b
Could somebody explain me next rows: var a, b = 2.0000001, 3.00000 fmt.Println(a + b) fmt.Println(2.0000001 + 3.00000) results of prints: fir
I want to know if there is a non OS-specific way to test if a Go program is launched by using the go run command or by executing the binary produced by the go b
I have a bare repository in which I need to add and commit a set of files. As far as I understand it, adding files to the index requires a worktree. Using git o
I am using counters to count the number of requests. Is there any way to get current value of a prometheus counter? My aim is to reuse existing counter without