current location:Home>Technical Articles>Backend Development>Golang
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- Go Redis Crud quickly example
- Install dependencies and environment variable Replace the values from database connection with yours. #env file REDIS_ADDRESS=localhost REDIS_PORT=6379 REDIS_PASSWORD=123456 REDIS_DB=0 #install on go go get github.com/redis/go-redis/v9
- Golang 742 2024-08-18 06:45:41
-
- Understanding Go terators
- Many people seem to be confused by newly added iterators in Go, that is why I decided to write another one article attempting to explain them in a simple as possible way. How are they called by Go? First, I think it is important to unders
- Golang 933 2024-08-18 06:32:06
-
- Day ??? of learning go. Building cli apps
- Why cli?? I have always had a preference for command line interface (CLI) and terminal user interface (TUI) tools over their graphical user interface (GUI) counterparts. This project, aptly named "Phraser" (no apologies for the poor namin
- Golang 953 2024-08-16 16:31:22
-
- Asciinema vs Savvy CLI: Terminal recording tools
- Savvy CLI and Asciinema are both powerful tools that can record terminal activity, but they serve different purposes and are built with different core functionalities. Savvy Purpose and Functionality Savvy CLI is primarily designed to au
- Golang 737 2024-08-16 12:32:10
-
- Query a database Using Go
- Step 1: Install the MySQL driver First, you'll need to install a MySQL driver for Go. A popular one is go-sql-driver/mysql. You can install it using: go get -u github.com/go-sql-driver/mysql Step 2: Write the Go code Here’s an example of how y
- Golang 182 2024-08-16 07:06:42
-
- Maintainable SQL Query Building with Golang
- Any application working with SQL queries can benefit from using a query builder to improve code readability, maintainability, and security. In fact, there are many different libraries that do just that in Golang. Here at Vaunt, we tried many differen
- Golang 238 2024-08-16 07:04:32
-
- A comprehensive explanation of go generics
- Go generics enable type parameterization, enhancing code conciseness, reusability, and type safety. Key benefits include error prevention, code reuse, and performance optimization. Generics facilitate reusable, maintainable, and performant code shari
- Golang 789 2024-08-15 14:02:18
-
- go calls function result on nil
- In Go, invoking a function on a nil pointer triggers a panic and program crash due to invalid memory reference, resulting in a segmentation fault. This behavior applies to both function calls and method invocations on nil receivers, as nil pointers a
- Golang 992 2024-08-15 14:01:14
-
- The difference between errors as and errors is
- This article explains the difference between 'errors as' and 'errors is' in Python's exception handling using try and except. 'errors as' introduces a variable to store the exception, allowing access to its details. 'errors is' checks for specific ex
- Golang 563 2024-08-15 14:00:18
-
- Detailed explanation of golang package package management
- This article provides best practices and tips for effective dependency management in Go, including using the go get command and Go Module system, organizing packages using the Go standard directory layout, troubleshooting common issues like dependenc
- Golang 830 2024-08-15 13:58:18
-
- go mongodb packaging tutorial
- This article provides guidance on encapsulating MongoDB operations in Go using an ORM library like mgo. It highlights the benefits of using ORM, such as a simplified API, reduced boilerplate code, and data validation. The article also includes an exa
- Golang 551 2024-08-15 12:19:19
-
- How to use go mongodb
- This article provides an overview of connecting to, querying, and handling errors in MongoDB using Go. It discusses different methods for connecting to a MongoDB database, querying and retrieving data, and handling errors and exceptions.
- Golang 223 2024-08-15 12:18:19
-
- Go + Docker: How to create the best Docker images for Golang applications
- Who has never had doubts about whether they were creating the correct Docker image for their application? Well, I've had this question several times and I almost always didn't know if I was doing it right or wrong. So in this article, we'll explore advanced practices for
- Golang 299 2024-08-14 22:49:02
-
- How to use go mongo
- This article provides a comprehensive guide to using the go mongo driver for interacting with a MongoDB instance. It covers the benefits of using go mongo, including its efficiency, concurrency support, rich feature set, API compatibility, and extens
- Golang 718 2024-08-14 16:17:20
-
- How to use elastic agents
- Elastic Agents enable dynamic scaling of application capacity based on demand through scaling policies, auto-scaling rules, and CI/CD pipeline integration. By optimizing cloud costs, Elastic Agents reduce idle capacity, right-size agents, and provide
- Golang 330 2024-08-14 15:31:18