gitlab.com/evatix-go/core@v1.3.55/coredata/stringslice/FirstLastStatus.go (about) 1 package stringslice 2 3 import "gitlab.com/evatix-go/core/constants" 4 5 type FirstLastStatus struct { 6 First, Last string 7 IsValid bool 8 HasFirst, HasLast bool 9 } 10 11 func InvalidFirstLastStatus() *FirstLastStatus { 12 return &FirstLastStatus{ 13 First: constants.EmptyString, 14 Last: constants.EmptyString, 15 IsValid: false, 16 HasFirst: false, 17 HasLast: false, 18 } 19 } 20 21 func InvalidFirstLastStatusForLast(first string) *FirstLastStatus { 22 return &FirstLastStatus{ 23 First: first, 24 Last: constants.EmptyString, 25 IsValid: false, 26 HasFirst: true, 27 HasLast: false, 28 } 29 }