-
-
source code
```
type A struct {}
type I interface {
Foo() A
}
```
Mock that was generate from genmock will have error because when genmock create mock file mock package is mock_\* so mock won't…
-
When SetArg is used to set a slice argument, it silently fails to set the argument when the call occurs. This is because setting a slice by reflection cannot be done with a one-shot Set() call.
Th…
-
请教个问题:
A - E - B1 - C1
- D - B2 - C2
A直接依赖E和D,E依赖B1,B1依赖C1,D依赖B2,B2依赖C2
在分析A的依赖时,检测到E中B1的版本比D中B2的版本新,所以最后使用了B1版本,B2中的C2版本比B1中的C1新,最后使用了C2版本
那这里B1和B2比较后(B1新),应该直接取B1版本以及C1版本,即C无需比较,它的父节点已经P…
-
Given a stack `var Stack = fx.Options(A.Module, B.Module, C.Module)`
What options are available to the user to either mutate or provide a custom A.Module. Right now the only option is to copy-pasta…
-
Way back in the day when the [original blog post](https://blog.golang.org/generate) came out, I loved the idea and started using `go generate` [a bunch](https://github.com/peter-edge/scm-go/blob/maste…
-
Hey Peter,
I think you accidentally broke the code recently
```
prog.go:11:2: cannot find package "github.com/petergtz/pegomock/pegomock/mockgen/model" in any of:
/usr/local/go/src/github.co…
-
I am planning to make a small internal CA, but i cant get boulder set up. I run the ./test/setup.sh, but this is what comes out(i cancelled it, it just looped):
```
root@shutteddown:~/work/src/gi…
-
I run the following command :`mockgen matching BannedDA`
since it used reflect mode, it generate reflectProgram witch write the pkg to os.stdout, and then the mockgen try to read the resuld and deco…
-
now we have lot's of interfaces and our comand look like:
```
//go:generate mockgen -package mocks -destination destpath.go package_name Interface1,Interface2,Interface3,Interface4,Interface5,Interfa…