26 lines
624 B
C++
26 lines
624 B
C++
#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));;
|
|
}
|
|
|
|
|