Hi there, I'm just a beginner for Golang. When I see the README, I saw: ...
11 years, 2 months ago
(2014-09-03 15:07:19 UTC)
#4
Hi there,
I'm just a beginner for Golang. When I see the README, I saw:
```
Helpers for getting values are superseded by the GetFoo methods and their
use is deprecated.
```
Dose that means i'd better use `*test.Label` to get the value to instead of
`GetLabel()` method?
在 2012年6月29日星期五UTC+8上午1时42分03秒,David Symonds写道:
>
> *** Submitted as
> http://code.google.com/p/goprotobuf/source/detail?r=04d7cf5b3d6c ***
>
> goprotobuf: Update docs for getters.
>
> R=r
> CC=golang-dev
> http://codereview.appspot.com/6370043
>
>
> http://codereview.appspot.com/6370043/
>
On 4 September 2014 01:07, <zhuangsirui@gmail.com> wrote: > Dose that means i'd better use `*test.Label` ...
11 years, 2 months ago
(2014-09-04 01:52:18 UTC)
#5
On 4 September 2014 01:07, <zhuangsirui@gmail.com> wrote:
> Dose that means i'd better use `*test.Label` to get the value to instead of
> `GetLabel()` method?
No, the other way around. GetLabel() will always gracefully work;
*test.Label will panic if the field isn't set.
Issue 6370043: code review 6370043: goprotobuf: Update docs for getters.
(Closed)
Created 13 years, 5 months ago by dsymonds
Modified 11 years, 2 months ago
Reviewers: zhuangsirui_gmail.com
Base URL:
Comments: 0