go-playground Questions
3
Solved
I am having some trouble understanding that why my code complains when I have hyphen in package.
e.g. if I have a package name foo-bar and I declare that package name
package foo-bar
foo-bar/confi...
Plangent asked 17/8, 2020 at 7:36
3
Solved
The testing package is available in the go playground.
How can I use the go playground to demonstrate testing concepts, without access to go test?
My assumption is it's possible using the testing...
Leatriceleave asked 13/9, 2017 at 20:0
2
Solved
I am using go-playground/validator/v10 to validate some input and have some trouble with custom validation tags and functions. The problem is that the function is not called when one of the struct ...
Moolah asked 26/4, 2021 at 21:16
0
I met a strange issue when doing test with channels.
In a normal main function, the following code will report the deadlock error.
package main
import (
"fmt"
)
func main() {
c := make(chan i...
Lowminded asked 15/5, 2020 at 14:30
1
Solved
How can I define different files or packages inside the Go playground?
Specially for checking it can be handy to define a package inside the playground. But to manage this I need to define differe...
Burrow asked 16/5, 2019 at 19:42
3
Solved
I had trouble finding a list of what packages may be imported in the go playground at http://play.golang.org/. I was trying to use the (apparently experimental) package for ebnf. However even a sho...
Prouty asked 4/4, 2016 at 17:39
2
Solved
I googled but got no answer. Is it possible? If yes, how to do it?
The Go Playground link: https://play.golang.org/
Maximamaximal asked 7/1, 2015 at 3:54
2
Solved
To settle some misunderstandings I have about goroutines, I went to the Go playground and ran this code:
package main
import (
"fmt"
)
func other(done chan bool) {
done <- true
go func() {...
Amputate asked 18/4, 2016 at 23:6
1
© 2022 - 2024 — McMap. All rights reserved.