golearn

module
v0.0.0-...-1fccb44 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT

README

This project have been created for learning purposes.

It will contain all hometask works, and also some functionality related to testing theoretical materials.

Project contain hasher package. It contain two functions - HashPassword and CheckPasswordHash.

This package contain functionality to work with passwords.

Currently, we have two functions to use HashPassword and CheckPasswordHash.

HashPassword provide functionality to create hash from Password string and return Password hash or error.

Example: hash := HashPassword(password1)

CheckPasswordHash provide functionality to check Password hash and return bool true if Password hash is equal to hash.

Example: isHashValid := CheckPasswordHash(password1, hash1)

The entry point placed into main.go file.

So now you can run this project with next command - go run main.go

Directories

Path Synopsis
cmd
webserver
Package main provide functionality for webserver.
Package main provide functionality for webserver.
hasher module
internal
chatswaggeropenapi
Package ChatSwaggerOpenapi provides primitives to interact with the openapi HTTP API.
Package ChatSwaggerOpenapi provides primitives to interact with the openapi HTTP API.
handler
Package handler handle requests.
Package handler handle requests.
hasher
Package hasher provide functionality to dial with passwords.
Package hasher provide functionality to dial with passwords.
model
Package models for server.
Package models for server.
repository
Package repository store data.
Package repository store data.
service
Package service contain all business logic.
Package service contain all business logic.
pkg
hasher Module

Jump to

Keyboard shortcuts

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