Documentation ¶
Overview ¶
Package util contains various small helper functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodeValidator ¶
CodeValidator provides a validator for wormhole codes.
func URLToGitHubProject ¶ added in v3.6.0
URLToGitHubProject returns a pre-parsed link to a GitHub site starting from github.com/jacalz/rymdport.
func UserDownloadsFolder ¶
func UserDownloadsFolder() string
UserDownloadsFolder returns the downloads folder corresponding to the current user.
func WindowSizeToDialog ¶
func WindowSizeToDialog(s fyne.Size) fyne.Size
WindowSizeToDialog scales the window size to a suitable dialog size.
Types ¶
type ProgressReader ¶ added in v3.4.0
type ProgressReader struct { Max int64 // contains filtered or unexported fields }
ProgressReader is a reader wrapper that calls a function for each part content being read with Read.
func NewProgressReader ¶ added in v3.4.0
NewProgressReader returns a wrapped Reader that updates the progress bar.
type ProgressReaderAt ¶ added in v3.6.0
type ProgressReaderAt struct { Max int64 // contains filtered or unexported fields }
ProgressReaderAt is a reader wrapper that calls a function for each part content being read with ReatAt.
func NewProgressReaderAt ¶ added in v3.4.0
NewProgressReaderAt returns a wrapped ReaderAt that updates the progress bar.