chiacli

package module
v0.0.0-...-3db2419 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

Documentation

Index

Constants

View Source
const (
	Version  = "v0.8.0"
	Author   = "kayuii"
	AppName  = "chiacli"
	AppTille = "CHIA_CLI"
	Email    = "577738@qq.com"
	Github   = "https://github.com/Kayuii/chiacli"
	Docker   = "https://hub.docker.com/r/kayuii/chia-plotter"
)

Version of mkbootgen

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteSz

type ByteSz int64

ByteSz is used for byte sizes

func ByteSzFromGB

func ByteSzFromGB(gb float64) ByteSz

ByteSzFromGB creates a new ByteSz from a float64 of SCI gigabytes

func ByteSzFromGiB

func ByteSzFromGiB(gb float64) ByteSz

ByteSzFromGiB creates a new ByteSz from a float64 of IEC gigabytes

func ByteSzFromMB

func ByteSzFromMB(mb float64) ByteSz

ByteSzFromMB creates a new ByteSz from a float64 of SCI megabytes

func (ByteSz) B

func (b ByteSz) B() int64

B returns the the ByteSz in bytes

func (ByteSz) GB

func (b ByteSz) GB() float64

GB returns the the ByteSz in SCI gigabytes

func (ByteSz) GiB

func (b ByteSz) GiB() float64

GiB returns the the ByteSz in IEC gigabytes

func (ByteSz) KB

func (b ByteSz) KB() float64

KB returns the the ByteSz in SCI kilobytes

func (ByteSz) KiB

func (b ByteSz) KiB() float64

KiB returns the the ByteSz in IEC kilobytes

func (ByteSz) MB

func (b ByteSz) MB() float64

MB returns the the ByteSz in SCI megabytes

func (ByteSz) MiB

func (b ByteSz) MiB() float64

MiB returns the the ByteSz in IEC megabytes

func (ByteSz) String

func (b ByteSz) String() string

String prints the ByteSz as a smart-formatted string according to its size

func (ByteSz) Sub

func (b ByteSz) Sub(other ByteSz) ByteSz

Sub subtracts another ByteSz

func (ByteSz) TB

func (b ByteSz) TB() float64

TB returns the the ByteSz in SCI terabytes

func (ByteSz) TiB

func (b ByteSz) TiB() float64

TiB returns the the ByteSz in IEC terabytes

type MemStats

type MemStats struct {
	Total, Used, Cached, Free, Active, Inactive, SwapTotal, SwapUsed, SwapFree ByteSz
}

MemStats represents memory statistics for darwin

func GetMemStats

func GetMemStats() *MemStats

GetMemStats gets a MemStats ptr with sizes in ByteSz

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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