[go-nuts] question

2018-01-31 Thread
hello my dear friend Google man: I have some questions. type Point struct{ x int y int } func (p *Point) hehe(i int) { p.x = i p.y = i } func main(){ Point{1,2}.hehe(4) // compile error: can't take address of Point literal } The book says that there’s no way to obtain the

[go-nuts]

2018-01-18 Thread
hello my dear friend Google man: I have some questions. type Point struct{ x int y int } func (p *Point) hehe(i int) { p.x = i p.y = i } func main(){ Point{1,2}.hehe(4) // compile error: can't take address of Point literal } The book says that there’s no way to obtain the

[go-nuts] Re: important

2017-10-09 Thread
who can help me? 2017年10月8日 上午10:36,"王晚成" <helloman...@gmail.com>写道: > hello, > What is the meaning of the mstartfn field inside the M structure under > runtime2.go? > Goroutine is eventually executed by threads, which naturally require the > mstartfn function to

[go-nuts] important

2017-10-07 Thread
hello, What is the meaning of the mstartfn field inside the M structure under runtime2.go? Goroutine is eventually executed by threads, which naturally require the mstartfn function to obtain G tasks. That's correct, isn't it? Thanks very much. -- You received this message because you are

[go-nuts] Hello, I have a question about the bottom of the goroutine

2017-10-06 Thread
hello , I have a question about the bottom of the goroutine. What is the meaning of the mstartfn field inside the M structure under runtime2.go? Is this mstartfn the function that we write behind the go statement? Or what other functions? Thanks very much!

[go-nuts] Re: can you help me? I have a problem.

2017-08-23 Thread
Thanks very much ,I have solved it 在 2017年8月24日星期四 UTC+8上午3:23:08,JuciÊ Andrade写道: > > My dear friend 王晚成 , > > You ask about the padchar parameter. That is the character used for > filling the space between columns. > The meaning of tabwidth is not so simple. To understa

[go-nuts] Re: can you help me? I have a problem.

2017-08-23 Thread
Thanks very much ,I have solved it 在 2017年8月24日星期四 UTC+8上午1:23:08,王晚成写道: > > func (b *Writer <https://golang.org/pkg/text/tabwriter/#Writer>) Init(output > io <https://golang.org/pkg/io/>.Writer <https://golang.org/pkg/io/#Writer>, > minwidth, tabwidth, paddi

[go-nuts] Re: can you help me? I have a problem.

2017-08-23 Thread
Thanks very much ,I have solved it 在 2017年8月24日星期四 UTC+8上午3:23:08,JuciÊ Andrade写道: > > My dear friend 王晚成 , > > You ask about the padchar parameter. That is the character used for > filling the space between columns. > The meaning of tabwidth is not so simple. To understa