gitlab.com/evatix-go/core@v1.3.55/coredata/corestr/newSimpleStringOnceCreator.go (about) 1 package corestr 2 3 type newSimpleStringOnceCreator struct{} 4 5 func (it *newSimpleStringOnceCreator) Any( 6 isIncludeFieldNames bool, 7 value interface{}, 8 isInitialize bool, 9 ) SimpleStringOnce { 10 toString := AnyToString( 11 isIncludeFieldNames, 12 value) 13 14 return SimpleStringOnce{ 15 value: toString, 16 isInitialize: isInitialize, 17 } 18 } 19 20 func (it *newSimpleStringOnceCreator) Uninitialized( 21 value string, 22 ) SimpleStringOnce { 23 return SimpleStringOnce{ 24 value: value, 25 isInitialize: false, 26 } 27 } 28 29 func (it *newSimpleStringOnceCreator) Init( 30 value string, 31 ) SimpleStringOnce { 32 return SimpleStringOnce{ 33 value: value, 34 isInitialize: true, 35 } 36 } 37 38 func (it *newSimpleStringOnceCreator) InitPtr( 39 value string, 40 ) *SimpleStringOnce { 41 return &SimpleStringOnce{ 42 value: value, 43 isInitialize: true, 44 } 45 } 46 47 func (it *newSimpleStringOnceCreator) Create( 48 value string, 49 isInitialize bool, 50 ) SimpleStringOnce { 51 return SimpleStringOnce{ 52 value: value, 53 isInitialize: isInitialize, 54 } 55 } 56 57 func (it *newSimpleStringOnceCreator) CreatePtr( 58 value string, 59 isInitialize bool, 60 ) *SimpleStringOnce { 61 return &SimpleStringOnce{ 62 value: value, 63 isInitialize: isInitialize, 64 } 65 } 66 67 func (it *newSimpleStringOnceCreator) Empty() SimpleStringOnce { 68 return SimpleStringOnce{} 69 }