refresh struct
This commit is contained in:
25
examples/security/main.cpp
Normal file
25
examples/security/main.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include <array>
|
||||
|
||||
#include "hack/logger/logger.hpp"
|
||||
#include "hack/security/uuid.hpp"
|
||||
#include "hack/security/is_link.hpp"
|
||||
#include "hack/security/is_string.hpp"
|
||||
#include "hack/security/validate_email.hpp"
|
||||
|
||||
auto main(int argc, char *argv[]) -> int
|
||||
{
|
||||
auto uuid = hack::security::generate_uuid();
|
||||
hack::log()(uuid);
|
||||
|
||||
hack::log()(hack::security::validate_uuid(uuid));
|
||||
|
||||
std::string url = "https://google.com";
|
||||
hack::log()(hack::security::is_link(url));
|
||||
|
||||
hack::log()(hack::security::is_string<decltype (url)>::value);
|
||||
|
||||
std::string email = "asdf@asdf.com";
|
||||
hack::log()(hack::security::validate_email(email));;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user