cmd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Copyright © 2021 Matt Davis <maroda@rainbowq.io>

Copyright © 2021 Matt Davis <maroda@rainbowq.io>

Copyright © 2021 Matt Davis <maroda@rainbowq.io>

Copyright © 2021 Matt Davis <maroda@rainbowq.io>

Copyright © 2021 Matt Davis <maroda@rainbowq.io>

Copyright © 2021 Matt Davis <maroda@rainbowq.io>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func MD5ken

func MD5ken(k string) string

MD5ken ::: Creates an MD5 hash appropriate as a

nice 32-character random string for token use.

func RndCoin

func RndCoin(salt int64) (int, string)

RndCoin ::: Produce a coin toss.

Takes a salt value to create a second salt value to
randomize a third number that is taken as odd or even
and returned respectively as heads (1) or tails (0),
along with a 32 character MD5 of the final random output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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