algo

package
v3.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package algo provides some algorithm utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash256

func Hash256(b []byte) []byte

func HashBase64SHA256

func HashBase64SHA256(s string) string

func HashHexSHA256

func HashHexSHA256(s string) string

func SetIntersection

func SetIntersection(a, b interface{}, eq func(a, b interface{}) bool) []interface{}

SetIntersection complexity: O(n^2), could be better but this is simple enough.

Types

This section is empty.

Jump to

Keyboard shortcuts

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