Discover Packages
github.com/mokiat/lacking
ui
optional
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Apr 28, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package optional contains primitive types and ui types
that can have an unspecified state.
type Bool struct {
Specified bool
Value bool
}
Bool represents an optional bool value.
NewBool returns a specified Bool value.
Color represents an optional ui Color value.
NewColor returns a specified Color value.
Float32 represents an optional float32 value.
NewFloat32 returns a specified Float32 value.
type Int struct {
Specified bool
Value int
}
Int represents an optional int value.
NewInt returns a specified Int value.
Size represents an optional ui Size value.
NewSize returns a specified Size value.
Spacing represents an optional ui Spacing value.
NewSpacing returns a specified Spacing value.
type String struct {
Specified bool
Value string
}
String represents an optional string value.
NewString returns a specified String value.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.