create-go-app
delve
Our great sponsors
create-go-app | delve | |
---|---|---|
6 | 52 | |
2,308 | 21,908 | |
1.2% | 1.2% | |
7.5 | 9.2 | |
3 months ago | 4 days ago | |
Go | Go | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
create-go-app
- Links e Projetos em Golang
-
📖 Go Fiber by Examples: Working with middlewares and boilerplates
View on GitHub
-
🎉 The Create Go App project has grown to v2, but is still easier, better, faster & stronger
Hello, friends! 😉 I'm excited to share great news with you: the Create Go App CLI project, that I've been working on for a long time, has finally been updated to major version 2.
# ./hosts.ini # Ansible inventory for deploy the Create Go App project. # Author: Vic Shóstak (https://shostak.dev) # For more information, please visit https://create-go.app/ [cgapp_project] 127.0.0.1 # CHANGE THIS TO YOUR REMOTE SERVER IP! [cgapp_project:vars] # # Ansible default variables to start playbook: # # Set remote sudo username ansible_user=root # Ask become password for remote sudo user ansible_become=yes # Set connection type to remote server (usually, 'ssh') ansible_connection=ssh # Set Python 3 default path ansible_python_interpreter=/usr/bin/python3 # # Remote server configuration: # # Set directory on your remote server # for store project files server_dir=/var/www/cgapp # Set user (owner of files/folders) name server_user=root # Set group name server_group=docker # # Project configuration: # # Set your project domain project_domain=example.com # # Docker configuration: # # Set Docker network name docker_network=cgapp_network # # Backend configuration: # # Set backend port number, # MUST BE MATCH to the port that is listed # in your `./backend/.env` file! backend_port=5000 # # PostgreSQL configuration (backend DB): # # Set PostgreSQL version (for example, 13.2) postgres_version=latest # Set PostgreSQL port number, # MUST BE MATCH to the port that is listed # in your `./backend/.env` file! postgres_port=5432 # Set PostgreSQL user name, # MUST BE MATCH to the user name that is listed # in your `./backend/.env` file! postgres_user=postgres # Set PostgreSQL password, # MUST BE MATCH to the password that is listed # in your `./backend/.env` file! postgres_password=password # Set PostgreSQL DB name, # MUST BE MATCH to the DB name that is listed # in your `./backend/.env` file! postgres_db=postgres # Set PostgreSQL SSL mode state ('enabled' or 'disabled'), # MUST BE MATCH to the SSL mode state that is listed # in your `./backend/.env` file! postgres_ssl_mode=disable # # Go-Migrate configuration: # # Set migration number, # if you WANT to migrate all of your migrations, # just leave it blank, # for only initial migration set it to '1' migrate_number=1 # # Redis configuration (backend cache): # # Set Redis version (for example, 6.2) redis_version=latest # Set Redis port number, # MUST BE MATCH to the port that is listed # in your `./backend/.env` file! redis_port=6379 # # Nginx configuration: # # Set Nginx version (for example, 1.20-alpine) nginx_version=alpine # Set redirect from HTTP to HTTPS for default server nginx_use_only_https=yes # Set redirect from WWW to non-WWW domain for default server nginx_redirect_to_non_www=yes
-
🗞 What's new and special in Create Go App CLI v1.7.0?
Hey, DEV friends! 👋 Today, I'd like to introduce a new version of my own project Create Go App CLI, that changes some fundamental things.
delve
-
The worst thing about Jenkins is that it works
At a recent job, we had slightly different containers for local dev; our backend containers (for a Go app) had Air [1] installed for live reloading, plus Delve [2] running inside the container for VS Code's debugger to connect to. We also had a frontend container for local dev, which didn't get deployed as a container, just as static files.
-
Tools besides Go for a newbie
delve and related IDE integrations
-
What a good debugger can do
For time travel debugging in Go:
The Delve debugger for Go supports debugging rr traces: https://github.com/go-delve/delve/blob/master/Documentation/...
Undo (who I work for) maintain a fork that debugs our LiveRecorder recordings: https://docs.undo.io/GoDelve.html
Either rr (https://rr-project.org/) or our UDB debugger (https://undo.io/solutions/products/udb/) can do some time travel debugging of Go programs via GDB's built-in support for Go. I believe its weakness is in support for goroutines, since they don't map well onto its idea of how programs run.
-
Is there a neovim config with preconfigured debugger?
So in my case I use https://github.com/leoluz/nvim-dap-go (which itself calls out to the CLI tool https://github.com/go-delve/delve).
-
Golang debugging tips
git clone https://github.com/go-delve/delve cd delve go install github.com/go-delve/delve/cmd/dlv
-
How to debug like a PRO using Neovim 🔥
| Language | Debugger | | Golang | delve |
-
Debugging Go Inside Docker Using VSCode
The required setup to debug a Go app running inside a Docker container is non-trivial. In this post I will walk through the configuration to achieve this using VSCode and the Delve debugger.
-
DEBUG A KUBERNETES OPERATOR WRITTEN IN GO
It’s awesome to use the powerful DELVE debugger for GO inside Visual Studio Code when you build a GO Operator. 🙂
-
Anyone figured out DAP for golang?
dap.adapters.go = function(callback, _) local stdout = vim.loop.new_pipe(false) local handle local pid_or_err local port = 38697 local opts = { stdio = { nil, stdout }, args = { "dap", "-l", "127.0.0.1:" .. port }, detached = true, } handle, pid_or_err = vim.loop.spawn("dlv", opts, function(code) stdout:close() handle:close() if code ~= 0 then print("dlv exited with code", code) end end) assert(handle, "Error running dlv: " .. tostring(pid_or_err)) stdout:read_start(function(err, chunk) assert(not err, err) if chunk then vim.schedule(function() require("dap.repl").append(chunk) end) end end) -- Wait for delve to start vim.defer_fn(function() callback { type = "server", host = "127.0.0.1", port = port } end, 100) end -- https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv_dap.md dap.configurations.go = { { type = "go", name = "Debug", request = "launch", program = "${file}", }, { type = "go", name = "Debug test", -- configuration for debugging test files request = "launch", mode = "test", program = "${file}", }, -- works with go.mod packages and sub packages { type = "go", name = "Debug test (go.mod)", request = "launch", mode = "test", program = "./${relativeFileDirname}", }, } ```
-
What's your Golang IDE?
I’ve found Delve (debugging tool) quite useful for Emacs. It uses the plugin from VS Code, so you might be halfway there already? Figure out what you need to configure in Emacs for debugging here.
What are some alternatives?
air - ☁️ Live reload for Go apps
go-debug
vim-go - Go development plugin for Vim
gorequest - GoRequest -- Simplified HTTP client ( inspired by nodejs SuperAgent )
go-sitemap-generator - go-sitemap-generator is the easiest way to generate Sitemaps in Go
gohper
godotenv - A Go port of Ruby's dotenv library (Loads environment variables from .env files)
fzf - :cherry_blossom: A command-line fuzzy finder
mongo-go-pagination - Golang Mongodb Pagination for official mongodb/mongo-go-driver package which supports both normal queries and Aggregation pipelines with all information like Total records, Page, Per Page, Previous, Next, Total Page and query results.
fastlz - Wrap over FastLz for GoLang
excelize - Go language library for reading and writing Microsoft Excel™ (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets
goreleaser - Deliver Go binaries as fast and easily as possible