utils

package
v0.1.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package utils contains some util functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLinux

func IsLinux() bool

IsLinux check if OS is linux

func IsTerminal

func IsTerminal() bool

IsTerminal detects terminal

func IsWindows

func IsWindows() bool

IsWindows check if OS is windows

func ParseInt8

func ParseInt8(s string) (int8, error)

ParseInt8 parse a string to int8

func ParseUInt32

func ParseUInt32(s string) (uint32, error)

ParseUInt32 parse a string to unit32

func RandomHex

func RandomHex(n int) string

RandomHex random a string hex with n bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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