gitlab.com/evatix-go/core@v1.3.55/coreinstruction/IdentifierWithIsGlobal.go (about) 1 package coreinstruction 2 3 type IdentifierWithIsGlobal struct { 4 BaseIdentifier 5 IsGlobal bool `json:"IsGlobal"` 6 } 7 8 func NewIdentifierWithIsGlobal( 9 id string, 10 isGlobal bool, 11 ) *IdentifierWithIsGlobal { 12 return &IdentifierWithIsGlobal{ 13 BaseIdentifier: BaseIdentifier{ 14 Id: id, 15 }, 16 IsGlobal: isGlobal, 17 } 18 } 19 20 func (receiver *IdentifierWithIsGlobal) Clone() *IdentifierWithIsGlobal { 21 if receiver == nil { 22 return nil 23 } 24 25 return &IdentifierWithIsGlobal{ 26 BaseIdentifier: *receiver.BaseIdentifier.Clone(), 27 IsGlobal: receiver.IsGlobal, 28 } 29 }