convertors

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 5 Imported by: ? 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.

Documentation

Overview

Package convertors provides data size convert functinality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToStr

func BytesToStr(i int64) string

BytesToStr converts integer of bytes to string.

func MilliCPUToStr

func MilliCPUToStr(i int32) string

MilliCPUToStr converts integer of milli CPU to string.

func StrToBytes

func StrToBytes(memory string) (uint64, error)

StrToBytes converts string containing memory as string to number of bytes the string represents.

func StrToMilliCPU

func StrToMilliCPU(cpu string) (uint64, error)

StrToMilliCPU converts CPU as a string representation to millicpus represented as an integer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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