github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/exttinygo/impl_intent.go (about) 1 /* 2 - Copyright (c) 2023-present unTill Software Development Group B.V. 3 @author Michael Saigachenko 4 */ 5 6 package exttinygo 7 8 import ( 9 "github.com/voedger/voedger/pkg/exttinygo/internal" 10 safe "github.com/voedger/voedger/pkg/state/isafestateapi" 11 ) 12 13 func (i TIntent) PutInt32(name string, value int32) { 14 internal.SafeStateAPI.IntentPutInt32(safe.TIntent(i), name, value) 15 } 16 17 func (i TIntent) PutInt64(name string, value int64) { 18 internal.SafeStateAPI.IntentPutInt64(safe.TIntent(i), name, value) 19 } 20 21 func (i TIntent) PutFloat32(name string, value float32) { 22 internal.SafeStateAPI.IntentPutFloat32(safe.TIntent(i), name, value) 23 } 24 25 func (i TIntent) PutFloat64(name string, value float64) { 26 internal.SafeStateAPI.IntentPutFloat64(safe.TIntent(i), name, value) 27 } 28 29 func (i TIntent) PutString(name string, value string) { 30 internal.SafeStateAPI.IntentPutString(safe.TIntent(i), name, value) 31 } 32 33 func (i TIntent) PutBytes(name string, value []byte) { 34 internal.SafeStateAPI.IntentPutBytes(safe.TIntent(i), name, value) 35 } 36 37 func (i TIntent) PutQName(name string, value QName) { 38 internal.SafeStateAPI.IntentPutQName(safe.TIntent(i), name, safe.QName(value)) 39 } 40 41 func (i TIntent) PutBool(name string, value bool) { 42 internal.SafeStateAPI.IntentPutBool(safe.TIntent(i), name, value) 43 }