Documentation
¶
Index ¶
- Variables
- func BreakBalance(p *message.Printer, balance string) (b1, b2 string)
- func ComputePasswordStrength(pb *cryptomaterial.ProgressBarStyle, th *cryptomaterial.Theme, ...)
- func CryptoToUSD(exchangeRate, coin float64) float64
- func DisableLog()
- func EditorsNotEmpty(editors ...*widget.Editor) bool
- func FormatAsUSDString(p *message.Printer, usdAmt float64) string
- func FormatDateOrTime(timestamp int64) string
- func GetAbsolutePath() (string, error)
- func HandleSubmitEvent(editors ...*widget.Editor) bool
- func RadiusLayout(gtx layout.Context, radius int, w layout.Widget) layout.Dimensions
- func SplitSingleString(text string, index int) string
- func SplitXPUB(text string, index1, index2 int) string
- func StringNotEmpty(texts ...string) bool
- func USDToDCR(exchangeRate, usd float64) float64
- func UseLogger(logger slog.Logger)
- func ValidateHost(host string) bool
- func ValidateLengthName(name string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ZeroBytes = encode.ClearBytes
ZeroBytes use for clearing a password or seed byte slice.
Functions ¶
func BreakBalance ¶
breakBalance takes the balance string and returns it in two slices
func ComputePasswordStrength ¶
func ComputePasswordStrength(pb *cryptomaterial.ProgressBarStyle, th *cryptomaterial.Theme, editors ...*widget.Editor)
func CryptoToUSD ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
func EditorsNotEmpty ¶
func FormatAsUSDString ¶ added in v1.1.0
func FormatDateOrTime ¶
func GetAbsolutePath ¶
func HandleSubmitEvent ¶
func RadiusLayout ¶ added in v1.1.0
func SplitSingleString ¶
func StringNotEmpty ¶
func ValidateHost ¶
func ValidateLengthName ¶
the length of name should be 20 characters
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.