programmer group

Git Tag Label Details

Git Tag tag Git tag displays labels alphabetically Git tag v1.01 label v1.01 Git show v1.01 shows the details of this label Multiple tags can be used simultaneously to point to versions at the same time point Git push origin — tags push all new local tags to the far end Ps: Let’s look at the GIT tag of the GIT command to label the current branch List labels Git tag # Prints out all the labels of the current warehouse at the consoleGit tag-l’v0.1. *’# Search for Patterned Labels Labeling Git tags fall into two...

programmer group

How golang uses tag attributes of struct

Start with an example We often encounter struct definitions in the following formats: type Person struct { Name string `json:"name"` Age int `json:"age"` } This struct defines a type called Person, which contains two domains, Name and Age; but behind the domains is the magic json: “name”, what is this used for? This article tries to explain this problem. This feature is often used when golang objects need to be converted to json. There are two points to note: 1. If a field does not start with a capital letter, it is...