golib

package module
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: MIT Imports: 9 Imported by: 0

README

golib

GoLib is a collection of commonly used functions.

Go Go Report Card GitHub go.mod Go version Go Reference

Functions

  • BrowserOpen: BrowserOpen opens a local browser.
  • CheckSha256: CheckSha256 sha265 sums a file and checks against an expected sha256 sum.
  • NumberFormat: NumberFormat formats a number with magnitude.
  • RandString: RandString generages a random string of n chars.

Feedback!

Feedback, suggestions, constructive comments, and pull requests are appreciated!

Documentation

Overview

Package golib is a collection of commonly used functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrowserOpen

func BrowserOpen(url string) error

BrowserOpen opens a local browser.

func CheckSha256 added in v1.0.5

func CheckSha256(filename string, sha256sum string) (bool, error)

CheckSha256 check the sha-256 sum of a file against the expected value.

func NumberFormat added in v1.0.3

func NumberFormat(num float64) string

NumberFormat formats a number with magnitude.

func RandString

func RandString(n int) string

RandString generages a random string of n chars

Types

This section is empty.

Jump to

Keyboard shortcuts

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