Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoHasha ¶
func GoHasha(opt *GohashaOptions) (string, error)
GoHasha return hash in string from string data or file
Types ¶
type GohashaOptions ¶
type GohashaOptions struct { //path to file for hashing Filepath string //Data from hashing Data string //Reader buffer BufferReader io.Reader //Any data Object interface{} //Get data from webpage Webpage string //Now, algorithms can be md5 or crc32 Algorithm string //Your hashing function HashingFunc func(string) string }
Click to show internal directories.
Click to hide internal directories.