Skip to content

Instantly share code, notes, and snippets.

@tirzasrwn
tirzasrwn / keybindings.json
Last active March 18, 2022 01:20
vscode user keybindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+/",
"command": "openInTerminal"
},
{
"key": "ctrl+shift+'",
"command": "workbench.action.terminal.kill"
},
@tirzasrwn
tirzasrwn / CMakeLists.txt
Last active May 25, 2022 04:52
mqtt-example-c
cmake_minimum_required(VERSION 3.10)
project(run C)
add_executable(run mqtt_example.c)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
target_link_libraries(run
mosquitto
)
@ayoubzulfiqar
ayoubzulfiqar / folder_structure.md
Created September 5, 2023 06:12
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files