view

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: 55 Imported by: 0

Documentation

Overview

package main

Index

Constants

This section is empty.

Variables

View Source
var (
	// Tutorials defines the metadata for each tutorial
	Tutorials = map[string]Tutorial{
		"welcome": {"Welcome", "", welcomeScreen},
		"json2Stuct": {"json2Stuct",
			"Convert json string to golang struct",
			json2StructUI.Me().layout,
		},
		"Sqlite2Struct": {"Sqlite2Struct",
			"Convert sqlite table to golang struct",
			sqlite2Struct.Me().layout,
		},
		"poem": {"poem",
			"poem from sqlite3 db ",
			poemUI.Me().layout,
		},
		"ip2region": {"ip2region",
			"根据ip地址查询 城市Id|国家|区域|省份|城市|ISP https://gitee.com/lionsoul/ip2region ",
			ip2region.Me().layout,
		},
		"cet4": {"cet4",
			"cet4 ",
			cet4ui.Me().layout,
		},
		"notes": {"notes",
			"notes ",
			notes.NotesUI,
		},
		"widgets": {"Widgets",
			"In this section you can see the features available in the toolkit widget set.\n" +
				"Expand the tree on the left to browse the individual tutorial elements.",
			widgetScreen,
		},
		"accordion": {"Accordion",
			"Expand or collapse content panels.",
			makeAccordionTab,
		},
		"button": {"Button",
			"Simple widget for user tap handling.",
			makeButtonTab,
		},
		"card": {"Card",
			"Group content and widgets.",
			makeCardTab,
		},
		"entry": {"Entry",
			"Different ways to use the entry widget.",
			makeEntryTab,
		},
		"form": {"Form",
			"Gathering input widgets for data submission.",
			makeFormTab,
		},
		"input": {"Input",
			"A collection of widgets for user input.",
			makeInputTab,
		},
		"text": {"Text",
			"Text handling widgets.",
			makeTextTab,
		},
		"toolbar": {"Toolbar",
			"A row of shortcut icons for common tasks.",
			makeToolbarTab,
		},
		"progress": {"Progress",
			"Show duration or the need to wait for a task.",
			makeProgressTab,
		},
		"containers": {"Containers",
			"Containers group other widgets and canvas objects, organising according to their layout.\n" +
				"Standard containers are illustrated in this section, but developers can also provide custom " +
				"layouts using the fyne.NewContainerWithLayout() constructor.",
			containerScreen,
		},
		"apptabs": {"AppTabs",
			"A container to help divide up an application into functional areas.",
			makeAppTabsTab,
		},
		"tools": {"Tools",
			"Tools",
			toolsScreen,
		},
	}

	// TutorialIndex  defines how our tutorials should be laid out in the index tree
	TutorialIndex = map[string][]string{
		"": {"welcome", "widgets", "containers", "tools"},
		"tools": {"json2Stuct", "poem", "Sqlite2Struct",
			"ip2region", "cet4", "notes"},
		"widgets": {"accordion", "button", "card", "entry", "form",
			"input", "text", "toolbar", "progress"},
		"containers": {"apptabs"},
	}
)
View Source
var SUPPORTED_LANGUAGES = []string{
	"go",
	"js",
	"java",
	"cs",
	"rb",
	"py",
	"mysql",
}

Functions

func CyyList

func CyyList(data []string) *wdg.List

func DateToTimestamp

func DateToTimestamp() []fyne.CanvasObject

func IsDir

func IsDir(path string) bool

判断所给路径是否为文件夹

func IsFile

func IsFile(path string) bool

判断所给路径是否为文件

func PathExists

func PathExists(path string) bool

func QuickScreen

func QuickScreen() *fyne.Container

QuickScreen the sql2Struct quickScreen

func Screen

func Screen() *fyne.Container

Package json2struct ... @Time : 2020/1/3 14:28 @Software: GoLand @File : init @Author : Bingo <airplayx@gmail.com> https://hub.fastgit.org/airplayx/gormat/blob/master/internal/app/json2struct/init.go

Screen the json2struct Screen

func Show

func Show(win fyne.Window) fyne.CanvasObject

Show loads a Mandelbrot fractal example window for the specified app context

func TexteditUI

func TexteditUI(win fyne.Window) fyne.CanvasObject

Show loads a new text editor

func TimeNow

func TimeNow() ([]fyne.CanvasObject, *time.Ticker)

func TimestampToDate

func TimestampToDate() []fyne.CanvasObject

Types

type Cet4

type Cet4 struct {
	// contains filtered or unexported fields
}

func (*Cet4) Me

func (me *Cet4) Me() *Cet4

type Data

type Data struct {
	// contains filtered or unexported fields
}

type EntityPoem

type EntityPoem struct {
	Title  string `orm:"title"`
	Author string `orm:"author"`
	Text   string `orm:"text"`
}

type Ip2region

type Ip2region struct {
	// contains filtered or unexported fields
}

func (*Ip2region) Me

func (me *Ip2region) Me() *Ip2region

type Json2StructUI

type Json2StructUI struct {
	// contains filtered or unexported fields
}

func (*Json2StructUI) Me

func (me *Json2StructUI) Me() *Json2StructUI

type PoemUI

type PoemUI struct {
	// contains filtered or unexported fields
}

func (*PoemUI) Me

func (me *PoemUI) Me() *PoemUI

type PresiloUI

type PresiloUI struct {
	// contains filtered or unexported fields
}

func (*PresiloUI) Me

func (me *PresiloUI) Me() *PresiloUI

type RunSettings

type RunSettings struct {
	InputPaths    []string
	OutputPath    string
	Language      string
	Module        string
	ListLanguages bool
	TabStyle      string
	UnsafeModule  bool
	// contains filtered or unexported fields
}

func ParseRunSettings

func ParseRunSettings() (*RunSettings, error)

type Sqlite2Struct

type Sqlite2Struct struct {
	// contains filtered or unexported fields
}

func (*Sqlite2Struct) Me

func (me *Sqlite2Struct) Me() *Sqlite2Struct

type Tutorial

type Tutorial struct {
	Title, Intro string
	View         func(w fyne.Window) fyne.CanvasObject
}

Tutorial defines the data structure for a tutorial

type VisualizerStreamer

type VisualizerStreamer struct {
	Streamer beep.Streamer
	// contains filtered or unexported fields
}

func (*VisualizerStreamer) Err

func (v *VisualizerStreamer) Err() error

func (*VisualizerStreamer) Stream

func (v *VisualizerStreamer) Stream(samples [][2]float64) (n int, ok bool)

Jump to

Keyboard shortcuts

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