mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-27 15:49:23 +00:00
Add dependencies/vendor (whatsapp)
This commit is contained in:
17
vendor/go.mau.fi/libsignal/util/optional/Integer.go
vendored
Normal file
17
vendor/go.mau.fi/libsignal/util/optional/Integer.go
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
package optional
|
||||
|
||||
// NewOptionalUint32 returns an optional Uint32 structure.
|
||||
func NewOptionalUint32(value uint32) *Uint32 {
|
||||
return &Uint32{Value: value, IsEmpty: false}
|
||||
}
|
||||
|
||||
func NewEmptyUint32() *Uint32 {
|
||||
return &Uint32{IsEmpty: true}
|
||||
}
|
||||
|
||||
// Uint32 is a simple structure for Uint32 values that can
|
||||
// optionally be nil.
|
||||
type Uint32 struct {
|
||||
Value uint32
|
||||
IsEmpty bool
|
||||
}
|
Reference in New Issue
Block a user