Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolFromString ¶
BoolFromString - возвращает true если строка = true, или =1
func CurrentDirectory ¶
func CurrentDirectory() string
CurrentDirectory - возвращает текущую директорию ОС
func FillSettings ¶
func FillSettings()
FillSettings загружает переменные окружения в структуру из переменных окружения
func Fill_TEMPLATES_FOLDER_NAME ¶
func Fill_TEMPLATES_FOLDER_NAME()
Fill_TEMPLATES_FOLDER_NAME - заполняет переменную TEMPLATES_FOLDER_NAME = "templates_main" или "templates"
func LoadSettingsTxt ¶
func LoadSettingsTxt()
Types ¶
type SettingsINI ¶
type SettingsINI struct { INCLUDE_TABLES string EXCLUDE_TABLES string TEMPLATE_FOLDERNAME string TEMPLATE_FOLDERNAME_MODEL string TEMPLATE_FOLDERNAME_DB string TEMPLATE_FOLDERNAME_CRUD string TEMPLATE_FOLDERNAME_TABLES string TEMPLATE_FOLDERNAME_GRPC string TEMPLATE_FOLDERNAME_GRPC_PROTO string TEMPLATE_FOLDERNAME_GRPC_SERVER string TEMPLATE_FOLDERNAME_GRPC_CLIENT string TEMPLATE_FOLDERNAME_NRPC string TEMPLATE_FOLDERNAME_NRPC_SERVER string TEMPLATE_FOLDERNAME_NRPC_CLIENT string TEMPLATE_FOLDERNAME_GRPC_NRPC string TEMPLATE_FOLDERNAME_GRPC_CLIENT_FUNC string TEMPLATE_SERVICE_NAME string TEMPLATE_FOLDERNAME_CRUD_STARTER string TEMPLATE_FOLDERNAME_ALIAS string TEMPLATE_FOLDER_CRUD_FUNCTIONS string TEMPLATE_FOLDERNAME_MAIN string TEMPLATE_REPOSITORY_URL string TEMPLATE_EXTERNAL_PROTO_FILENAME string TEMPLATES_CRUD_FILENAME string TEMPLATES_CRUD_TEST_FILENAME string TEMPLATES_ALIAS_FILENAME string TEMPLATES_CRUD_TABLE_UPDATE_FUNC_FILENAME string TEMPLATES_CRUD_TABLE_UPDATE_FUNC_TEST_FILENAME string TEMPLATES_CONVERT_ID_FILENAME string TEMPLATES_CRUD_FUNCTIONS_RENAME_FILENAME string TEMPLATES_MODEL_CRUD_DELETE_FUNCTIONS_FILENAME string TEMPLATES_NAME_REPLACE_FILENAME string TEMPLATES_NAME_PRIMARYKEYS_FILENAME string TEMPLATES_NULLABLE_FILENAME string TEMPLATES_CRUD_TABLE_UPDATE_FILENAME string TEMPLATES_CRUD_TABLE_UPDATE_TEST_FILENAME string TEMPLATES_GRPC_CLIENT_TABLE_UPDATE_FILENAME string TEMPLATES_GRPC_CLIENT_TABLE_UPDATE_TEST_FILENAME string TEMPLATES_GRPC_SERVER_TABLE_UPDATE_FILENAME string TEMPLATES_GRPC_SERVER_TABLE_UPDATE_TEST_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_CACHE_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_CACHE_TEST_FILENAME string TEMPLATE_GRPC_CLIENT_FUNC_FILENAME string TEMPLATE_GRPC_CLIENT_FUNC_TEST_FILENAME string TEMPLATES_README_MD_FILENAME string TEMPLATES_README_RUS_FILENAME string TEMPLATE_FOLDERNAME_CONSTANTS string TEMPLATES_CONSTANTS_FILENAME string NEED_CREATE_MODEL_STRUCT bool NEED_CREATE_MODEL_CRUD bool NEED_CREATE_DB bool NEED_CREATE_DB_TEST bool NEED_CREATE_DB_TABLES bool NEED_CREATE_GRPC bool NEED_CREATE_GRPC_SERVER_TEST bool NEED_CREATE_GRPC_CLIENT_TEST bool NEED_CREATE_NRPC bool NEED_CREATE_NRPC_SERVER_TEST bool NEED_CREATE_NRPC_CLIENT_TEST bool NEED_CREATE_MANUAL_FILES bool NEED_CREATE_CACHE_API bool NEED_CREATE_CACHE_FILES bool NEED_CREATE_CACHE_TEST_FILES bool NEED_CREATE_MAIN_FILE bool NEED_CREATE_CONSTANTS_FILE bool SERVICE_NAME string SERVICE_REPOSITORY_URL string TEXT_TEMPLATE_MODEL string TEXT_TEMPLATE_TABLENAME string HAS_IS_DELETED bool READY_FOLDERNAME string TEXT_DB_MODIFIED_AT string TEXT_DB_CREATED_AT string TEXT_DB_IS_DELETED string USE_DEFAULT_TEMPLATE bool PREFIX_SERVER_GRPC string PREFIX_CLIENT_GRPC string PREFIX_CRUD string SUFFIX_CRUD string PREFIX_MODEL string PREFIX_TABLE string COMMENT_MODEL_STRUCT string TEXT_MODULE_GENERATED string READY_ALIAS_FILENAME string NEED_CREATE_UPDATE_EVERY_COLUMN bool CACHE_ELEMENTS_COUNT_MAX int64 SINGULAR_TABLE_NAMES bool //---FINDBY--- TEMPLATES_FINDBY_FILENAME string TEMPLATES_CRUD_TABLE_FINDBY_FILENAME string TEMPLATES_CRUD_TABLE_FINDBY_TEST_FILENAME string TEMPLATES_CRUD_TABLE_FINDBY_FUNCTION_FILENAME string TEMPLATES_CRUD_TABLE_FINDBY_FUNCTION_TEST_FILENAME string TEMPLATES_GRPC_SERVER_FINDBY_FILENAME string TEMPLATES_GRPC_SERVER_FINDBY_FUNCTION_FILENAME string TEMPLATES_GRPC_SERVER_FINDBY_TEST_FILENAME string TEMPLATES_GRPC_SERVER_FINDBY_FUNCTION_TEST_FILENAME string TEMPLATES_MODEL_FINDBY_FILENAME string TEMPLATES_MODEL_FINDBY_FUNCTION_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_FINDBY_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_FINDBY_TEST_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_FINDBY_FUNCTION_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_FINDBY_FUNCTION_TEST_FILENAME string //---FINDMASSBY--- TEMPLATES_FINDMASSBY_FILENAME string TEMPLATES_CRUD_TABLE_FINDMASSBY_FILENAME string TEMPLATES_CRUD_TABLE_FINDMASSBY_TEST_FILENAME string TEMPLATES_CRUD_TABLE_FINDMASSBY_FUNCTION_FILENAME string TEMPLATES_CRUD_TABLE_FINDMASSBY_FUNCTION_TEST_FILENAME string TEMPLATES_GRPC_SERVER_FINDMASSBY_FILENAME string TEMPLATES_GRPC_SERVER_FINDMASSBY_FUNCTION_FILENAME string TEMPLATES_GRPC_SERVER_FINDMASSBY_TEST_FILENAME string TEMPLATES_GRPC_SERVER_FINDMASSBY_FUNCTION_TEST_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_FINDMASSBY_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_FINDMASSBY_TEST_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_FINDMASSBY_FUNCTION_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_FINDMASSBY_FUNCTION_TEST_FILENAME string TEMPLATES_MODEL_FINDMASSBY_FILENAME string TEMPLATES_MODEL_FINDMASSBY_FUNCTION_FILENAME string //---READALL--- TEMPLATES_READALL_FILENAME string TEMPLATES_CRUD_TABLE_READALL_FILENAME string TEMPLATES_CRUD_TABLE_READALL_TEST_FILENAME string TEMPLATES_CRUD_TABLE_READALL_FUNCTION_FILENAME string TEMPLATES_CRUD_TABLE_READALL_FUNCTION_TEST_FILENAME string TEMPLATES_GRPC_SERVER_READALL_FILENAME string TEMPLATES_GRPC_SERVER_READALL_FUNCTION_FILENAME string TEMPLATES_GRPC_SERVER_READALL_TEST_FILENAME string TEMPLATES_GRPC_SERVER_READALL_FUNCTION_TEST_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_READALL_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_READALL_TEST_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_READALL_FUNCTION_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_READALL_FUNCTION_TEST_FILENAME string TEMPLATES_MODEL_READALL_FILENAME string TEMPLATES_MODEL_READALL_FUNCTION_FILENAME string //---FINDMODELBY--- TEMPLATES_FINDMODELBY_FILENAME string TEMPLATES_CRUD_TABLE_FINDMODELBY_FILENAME string TEMPLATES_CRUD_TABLE_FINDMODELBY_TEST_FILENAME string TEMPLATES_CRUD_TABLE_FINDMODELBY_FUNCTION_FILENAME string TEMPLATES_CRUD_TABLE_FINDMODELBY_FUNCTION_TEST_FILENAME string TEMPLATES_GRPC_SERVER_FINDMODELBY_FILENAME string TEMPLATES_GRPC_SERVER_FINDMODELBY_FUNCTION_FILENAME string TEMPLATES_GRPC_SERVER_FINDMODELBY_TEST_FILENAME string TEMPLATES_GRPC_SERVER_FINDMODELBY_FUNCTION_TEST_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_FINDMODELBY_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_FINDMODELBY_TEST_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_FINDMODELBY_FUNCTION_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_FINDMODELBY_FUNCTION_TEST_FILENAME string TEMPLATES_MODEL_FINDMODELBY_FILENAME string TEMPLATES_MODEL_FINDMODELBY_FUNCTION_FILENAME string TEMPLATES_CRUD_FUNC_FOLDERNAME string TEMPLATES_CRUD_FUNC_FILENAME string TEMPLATES_CRUD_FUNC_TEST_FILENAME string // FILE_PERMISSIONS fs.FileMode //= 0666 GENERATION_PROTO_FILENAME string GRPC_CLIENT_FILENAME string GRPC_CLIENT_TEST_FILENAME string NRPC_CLIENT_FILENAME string NRPC_CLIENT_TEST_FILENAME string NRPC_CLIENT_TABLE_FILENAME string NRPC_CLIENT_TABLE_TEST_FILENAME string SERVER_GRPC_STARTER_FILENAME string SERVER_GRPC_FUNC_FILENAME string MAKEFILE_FILENAME string ENV_FILENAME string STARTER_TABLES_FILENAME string STARTER_TABLES_TEST_FILENAME string STARTER_TABLES_MANUAL_FILENAME string STARTER_TABLES_TEST_MANUAL_FILENAME string STARTER_TABLES_PREFIX string CRUD_TABLES_FREFIX string MODEL_TABLE_MANUAL_FILENAME string MODEL_TABLE_UPDATE_FILENAME string SERVER_GRPC_TABLE_UPDATE_FUNC_FILENAME string SERVER_GRPC_TABLE_UPDATE_FUNC_TEST_FILENAME string GRPC_CLIENT_TABLE_UPDATE_FUNC_FILENAME string GRPC_CLIENT_TABLE_UPDATE_FUNC_TEST_FILENAME string CRUD_TABLES_CACHE_FILENAME string CRUD_TABLES_CACHE_TEST_FILENAME string SERVER_GRPC_TABLE_CACHE_FILENAME string SERVER_GRPC_TABLE_CACHE_TEST_FILENAME string TEXT_READALL string NEED_USE_DB_VIEWS bool TESTS_FOLDERNAME string //Objects NEED_CREATE_READOBJECT bool PREFIX_READOBJECT string PREFIX_CRUD_READOBJECT string TEMPLATES_READOBJECT_FOLDERNAME string TEMPLATES_MODEL_READOBJECT_FILENAME string TEMPLATES_MODEL_CRUD_READOBJECT_FILENAME string TEMPLATES_MODEL_CRUD_OBJECT_MANUAL_FILENAME string TEMPLATES_CRUD_READOBJECT_FOLDERNAME string TEMPLATES_CRUD_TABLE_READOBJECT_FILENAME string TEMPLATES_CRUD_TABLE_READOBJECT_TEST_FILENAME string TEMPLATES_CRUD_TABLE_READOBJECT_FUNCTION_FILENAME string TEMPLATES_CRUD_TABLE_READOBJECT_FUNCTION_TEST_FILENAME string TEMPLATES_GRPC_SERVER_READOBJECT_FILENAME string TEMPLATES_GRPC_SERVER_READOBJECT_FUNCTION_FILENAME string TEMPLATES_GRPC_SERVER_READOBJECT_TEST_FILENAME string TEMPLATES_GRPC_SERVER_READOBJECT_FUNCTION_TEST_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_READOBJECT_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_READOBJECT_TEST_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_READOBJECT_FUNCTION_FILENAME string TEMPLATES_GRPC_CLIENT_TABLES_READOBJECT_FUNCTION_TEST_FILENAME string STARTER_TABLES_READOBJECT_FILENAME string STARTER_TABLES_READOBJECT_TEST_FILENAME string //Text DELETED TEXT_DELETED_TABLE string TEXT_DELETED_TABLE_RUS string TEXT_DELETED_COLUMN string TEXT_DELETED_COLUMN_RUS string // FOLDERNAME_GRPC_PROTO string FOLDERNAME_API string }
SettingsINI - структура для хранения всех нужных переменных окружения
var Settings SettingsINI
Settings хранит все нужные переменные окружения
Click to show internal directories.
Click to hide internal directories.