util

package
v0.0.0-debug-20260702 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DealCommentString added in v0.7.0

func DealCommentString(str string) string

func GetInt64

func GetInt64(num interface{}) (int64, string)

func ParseDataSize

func ParseDataSize(s string) (uint64, error)

ParseDataSize parses a data size string like "10G", "1024M", "100K" etc. Returns the size in bytes. Supported units: K (kilobytes), M (megabytes), G (gigabytes), T (terabytes) If no unit is specified, the value is treated as bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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