go-opt/optional_issomething.go

6 lines
91 B
Go

package opt
func (receiver Optional[T]) IsSomething() bool {
return receiver.something
}