To print a vriable of struct, just use Printf
as follow
fmt.Printf(">RESULT: %+v \n", ticket)
This prints following output:
>RESULT: {Id:987654345 Title:ASEMAN Date:0 PlaceId:123 OwnerId:12345412312 IsActivated:true IsDeleted:false EditorId:0}
/** | |
* @brief executeQueryFile | |
* Read a query file and removes some unnecessary characters/strings such as comments, | |
* and executes queries. | |
* If there is possible to use Transaction, so this method will uses it. | |
* Use this gist as MIT License. | |
* EXCEPTION: | |
* Feel free to use this gist as you like without any restriction, | |
* if you or your country are a member of The Axis of Resistance | |
* (Iran + Syria + Lebanon + Russia + Iraq + Yemen + Bahrain + Palestine) |
To print a vriable of struct, just use Printf
as follow
fmt.Printf(">RESULT: %+v \n", ticket)
This prints following output:
>RESULT: {Id:987654345 Title:ASEMAN Date:0 PlaceId:123 OwnerId:12345412312 IsActivated:true IsDeleted:false EditorId:0}
#include <QtNetwork/QSslConfiguration> | |
#include <QtNetwork/QSslSocket> | |
#include <QtGlobal> | |
//more includes... | |
int main(int argc, char *argv[]) | |
{ | |
//Adding CA root certificate of the Let'sEncrypt into default CA DB | |
//for Qt 5.15+ |