Step1 : insexec/cli: create package insexec/cli/{cliname} {cliname} commandbuilder // Define all commands delegates to functions which enque the tasks GetRootCommand // use commandbuilder to generate and expose commands
4/13/2022cpanel features Create Database mysql -u root -e "CREATE DATABASE dbname;" Delete Database mysql -u root -e "DROP DATABASE dbname;" List Databases mysql -u root -e "SHOW DATABASES;" Add New User mysql -u root -e "CREATE USER 'userxyz123'@'%' IDENTIFIED BY 'password123';"
2/11/2022Problem Let's assume we have a struct and it has many fields, and we want to initialize it. One way to do it is to initialize with all fields but this is messy and also all the fields need to be public or we will need setters. For Example : type EnqueueRequest struct { Client *asynq.Client Task *asynq.Task IsLockRequired bool MaxRetries int }
1/4/2022Casbin is a powerful and efficient open-source access control library. It provides support for enforcing authorization based on various access control models. What is Access Control ? Access control is a method of guaranteeing that users are who they say they are and that they have the appropriate access to company data. Comprises of two segments Authentication Verify User's claim, or to check if they are who they claim
12/22/2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up