forked from TrueCloudLab/frostfs-api-go
[#302] pkg/object: Document default values set in NewID
Document field values of instance constructed via `NewID`. Assert the values in corresponding unit test. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
245a55f715
commit
6c12b4dfb6
2 changed files with 19 additions and 0 deletions
|
@ -25,6 +25,9 @@ func NewIDFromV2(idV2 *refs.ObjectID) *ID {
|
|||
// NewID creates and initializes blank ID.
|
||||
//
|
||||
// Works similar as NewIDFromV2(new(ObjectID)).
|
||||
//
|
||||
// Defaults:
|
||||
// - value: nil.
|
||||
func NewID() *ID {
|
||||
return NewIDFromV2(new(refs.ObjectID))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue