Upgrade to v2.5
Fyne API v2.5
app
canvas
container
data/binding
package binding
Bool
BoolList
BoolTree
Bytes
BytesList
BytesTree
DataItem
DataList
DataListener
DataMap
DataTree
ExternalBool
ExternalBoolList
ExternalBoolTree
ExternalBytes
ExternalBytesList
ExternalBytesTree
ExternalFloat
ExternalFloatList
ExternalFloatTree
ExternalInt
ExternalIntList
ExternalIntTree
ExternalRune
ExternalRuneList
ExternalRuneTree
ExternalString
ExternalStringList
ExternalStringTree
ExternalUntyped
ExternalUntypedList
ExternalUntypedMap
ExternalUntypedTree
ExternalURI
ExternalURIList
ExternalURITree
Float
FloatList
FloatTree
Int
IntList
IntTree
Rune
RuneList
RuneTree
String
StringList
StringTree
Struct
Untyped
UntypedList
UntypedMap
UntypedTree
URI
URIList
URITree
data/validation
dialog
driver
driver/desktop
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
Fyne API "binding.Struct"
binding.Struct
import "fyne.io/fyne/v2/data/binding"
Usage
type Struct
type Struct interface {
DataMap
GetValue(string) (any, error)
SetValue(string, any) error
Reload() error
}
Struct is the base interface for a bound struct type.
Since:
2.0
func BindStruct
func BindStruct(i any) Struct
BindStruct creates a new map binding of string to any using the struct passed as data. The key for each item is a string representation of each exported field with the value set as an any. Only exported fields are included.
Since:
2.0