donnol

Results 10 comments of donnol

没有下一题的快速按钮嘛?感觉不太方便

刚试了,可以的。非常感谢!

@timurgarif Ok, thanks. But ignoring the `err` check between the twice read should cause problem if the first read return a `err` not nil.

That's great, thanks. > Yes, there is a project of adding some pooling and rewrite the connection mechanism. > > For now, I am a little bit busy but maybe...

I find the code that split the long content to many parts: `words := strings.Split(unicodeText, " ")` But the Chinese will not use a space between two worlds. ```go //...

```sh gotip download 正克隆到 '/home/jd/sdk/gotip'... fatal: 无法访问 'https://go.googlesource.com/go/':Failed to connect to go.googlesource.com port 443: 拒绝连接 gotip: failed to clone git repository: exit status 128 ``` `GOPROXY="https://goproxy.io,https://goproxy.cn,direct"` 我已经设置GOPROXY了,拉包都没问题,gotip是不是不能用GOPROXY来下的吧?

```go { tp := reflect.TypeOf(Outer{}) //prints 1 fmt.Println(tp.NumField()) i := 0 for i < tp.NumField() { if tp.Field(i).Anonymous { fmt.Println("anonymous", tp.Field(i).Type, tp.Field(i).Type.NumField()) } fmt.Println(tp.Field(i).Name) i++ } } ``` I think...

@henryksloan Thanks, it work with your option. ```sh $ WINIT_UNIX_BACKEND="x11" cargo run Finished dev [unoptimized + debuginfo] target(s) in 0.14s Running `/home/jd/Project/jd/egui/target/debug/confirm_exit` 段错误 ``` But a segment fault error message...

After some try, I found it works like below: ```go ... { v, err := i.Eval("main.SumG(1, 2)") if err != nil { t.Fatal(err) } r := v.Interface().(int) println(r) } ......