-
t2.go:
``` go
package t2
type S struct {
A int
}
```
t2_test.go:
``` go
package t2
import (
"encoding/json"
"strings"
"testing"
)
func TestCaseInsensitiveDecoding(t *testing.T) {…
ghost updated
8 years ago
-
Hi
I tried to generate un-/marshalers for the following code:
```
package gen
type Item struct {
Val int
}
type TStruct struct {
Mp map[string] Item
}
type TMap map[string] Item
```
The…
mxmsk updated
8 years ago
-
```
[WARN] Lock file may be out of date. Hash check of YAML failed. You may need to run 'update'
[INFO] Downloading dependencies. Please wait...
[INFO] --> Fetching github.com/coreos/go-oidc.
[INF…
-
exit status 2
cc @caesarxuchao
[13 Feb 17 07:07 UTC]: Successfully clone https://github.com/caesarxuchao/apimachinery.git
[13 Feb 17 07:14 UTC]: Successfully publish [repository apimachinery, branch m…
-
Rook rebuilds all the packages with incremental builds even if nothing changed. The incremental build needs to be very fast for dev iteration. This happens for rookd, but is now more pronounced in my …
-
Given a `foo` package containing at least two files and a `map[string][]stuct` member:
bar.go :
``` go
package foo
//easyjson:json
type Bar struct {
Name string
Bozes map[string][]Boz
}…
-
Create:
$GOPATH/src/example.com/example/main.go:
```
package main
import (
"k8s.io/kubernetes/pkg/client/restclient"
client "k8s.io/kubernetes/pkg/client/unversioned"
)
func main() {
v…
-
Is this the package I would use for model validation?
-
Hey folks,
since this week we're unable to install kops any more, as well on Circle.CI as locally. This is the error trace:
```
⏚ [apinnecke:~/src/etventure/infrastructure] master(+2/-2)+ ± go get g…
-
I see from [this part of the code](https://github.com/tinylib/msgp/blob/master/gen/spec.go#L223) that the generator prefer pointer receivers for struct with > 3 fields and arrays.
This seems unnecess…