customWidget

package
v0.0.0-...-d77992a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewList

func NewList(data []string) *widget.List

Types

type ChanEnumerable

type ChanEnumerable <-chan interface{}

func (ChanEnumerable) Filter

func (input ChanEnumerable) Filter(f func(interface{}) bool) Enumerable

func (ChanEnumerable) Fold

func (input ChanEnumerable) Fold(initialValue interface{}, f func(interface{}, interface{}) interface{}) interface{}

func (ChanEnumerable) Map

func (input ChanEnumerable) Map(f func(interface{}) interface{}) Enumerable

type Enumerable

type Enumerable interface {
	Map(func(interface{}) interface{}) Enumerable
	Filter(func(interface{}) bool) Enumerable
	Fold(interface{}, func(interface{}, interface{}) interface{}) interface{}
}

https://hub.fastgit.org/sergioifg94/go-higher-order-benchmarks/blob/master/pkg/enumerable/

type FileTree

type FileTree struct {
	widget.Tree
	Filter storage.FileFilter
	Sorter func(fyne.URI, fyne.URI) bool
	// contains filtered or unexported fields
}

FileTree extends widget.Tree to display a file system hierarchy.

func NewFileTree

func NewFileTree(root fyne.URI) *FileTree

NewFileTree creates a new FileTree from the given root URI.

type SliceEnumerable

type SliceEnumerable []interface{}

func (SliceEnumerable) Filter

func (input SliceEnumerable) Filter(f func(interface{}) bool) Enumerable

func (SliceEnumerable) Fold

func (input SliceEnumerable) Fold(initialValue interface{}, f func(interface{}, interface{}) interface{}) interface{}

func (SliceEnumerable) Map

func (input SliceEnumerable) Map(f func(interface{}) interface{}) Enumerable

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL