Discover Packages
github.com/ordishs/go-utils
package
module
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Nov 26, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
func SafeSend[T any ](ch chan T, t T) bool
SafeSend is a helper function that sends a value on a channel and returns.
It is safe to use with closed channels.
It uses go generics to allow for any type of channel.
Sha256d calculates hash(hash(b)) and returns the resulting bytes.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.