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+ |
| Usage: configure [options] [assignments] | |
| Configure understands variable assignments like VAR=value on the command line. | |
| Each uppercased library name (obtainable with -list-libraries) supports the | |
| suffixes _INCDIR, _LIBDIR, _PREFIX (INCDIR=PREFIX/include, LIBDIR=PREFIX/lib), | |
| _LIBS, and - on Windows and Darwin - _LIBS_DEBUG and _LIBS_RELEASE. E.g., | |
| ICU_PREFIX=/opt/icu42 ICU_LIBS="-licui18n -licuuc -licudata". | |
| It is also possible to manipulate any QMAKE_* variable, to amend the values | |
| from the mkspec for the build of Qt itself, e.g., QMAKE_CXXFLAGS+=-g3. |
The Qt v5.15 Community doesn't support OpenSSL 3 by default. You will face some issues at runtime if you attempt to build it with OpenSSL 3. This gist explains how to do it by yourself.
..\configure -prefix h:\mousavi\Qt\5.15.10\win32-msvc2019-x86 -debug-and-release -skip qtwebengine -openssl-runtime OPENSSL_PREFIX="H:\mousavi\OpenSSL-Win32"`