Go Error Handling Best Practices

The most obvious difference between Go's error and Java's Exception is:Native libraries do not carry stacktraceNative library does not support WrapThis brings some troubles to program debug ging, so we will use github.com/pkg/errors to replace the native errors package to handle Error s.However, due to the high probability of not usin ...

Posted by ediehl on Mon, 21 Nov 2022 06:02:43 +0300

[Very important] In-depth understanding of "modification" in Git

Glossary staged: has been staged, indicating that the current file has been put into the cache area by the git command unstager: not yet staged, meaning that it has not been placed in the cache yet 0. Note: Git manages changes, not files For now, assume you've fully grasped the concept of scratch pads. Below, we will discuss why Git ...

Posted by matchew on Sat, 15 Oct 2022 01:38:27 +0300

Detailed explanation of spring cloud Config service configuration

Spring Cloud Config summaryConfig server configuration and testConfig client configuration and testingDynamic refresh of Config client summary Configuration problems faced by distributed systems What is it? What can I do Centrally manage profiles Different environments have different configurations, dynamic confi ...

Posted by Mr_jmm on Wed, 25 May 2022 03:22:01 +0300

Practical application of tekton cloud native CI/CD in gitlab

Environment: scientific environment, kubernetes 1.8+, tekton latest explain Tekton is a powerful and flexible Kubernetes native open source framework that can be used to create continuous integration and delivery (CI/CD) systems. The framework allows you to build, test and deploy across multiple cloud service providers or local systems witho ...

Posted by just me and php on Tue, 24 May 2022 21:23:21 +0300

git common operations -- branch

Sharp tools make good work           branch   Branching is a simple concept, which is the same as that used in daily life. For example, hair branching: it is divided into two or more from one branch, and each branch is a branch.     git's branching function makes it a lot easier to use. Each branch will not be affected by each ot ...

Posted by SchweppesAle on Sun, 22 May 2022 10:16:22 +0300

[Git] - workspace, staging area, version library, remote warehouse

1, Concept 1. Four working areas Git has four local work areas: Working Directory, stage / index, Repository or git directory, and git remote directory. The conversion relationship between these four areas is as follows: Workspace: workspace is where you usually store project code Index / Stage: temporary storage area, which is used to tempora ...

Posted by magicmoose on Fri, 20 May 2022 22:03:50 +0300

Git practical skills and command summary

1. New construction Create a new git version library. The configuration, storage and other information of this version library will be saved to Git folder   # Initialize the current project $ git init# Create a new directory and initialize it as Git Code base $ git init [project-name]# Creates an empty directory in the specified directory Git W ...

Posted by garethhall on Tue, 17 May 2022 17:04:52 +0300

How to get Docker images to take off, so simple to set up

I. Introduction Docker is great to use, especially when it comes to DevOps practices. However, when you pull mirrors in China or locally, you often encounter various "constipation" - either the mirror pull is slow, or the connection is intermittent, or the connection times out! When our images are large (like someone dropped a Warcr ...

Posted by genom on Tue, 17 May 2022 13:01:00 +0300

Git common commands

Git common commands New code base git clone Create a new Git repository in the current directory $ git init Create a new directory and initialize it as a Git repository $ git init [project-name] Download a project and its entire code history $ git clone [url] configure git config Git's setting file is .gitconfig, which can be in t ...

Posted by mr_tron on Mon, 16 May 2022 23:48:59 +0300

01 git getting started

Background analysis In the process of software project development, the code and documents shared between teams may be accidentally overwritten or lost by others or themselves. I don't know who changed this code for what reason, and there is no way to recover the modifications made a few days ago. Therefore, the version control system (VCS vers ...

Posted by AE117 on Sun, 15 May 2022 20:39:31 +0300