You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition to alignment, it can also sort tags with fixed order. If we enable sort with fixed order `json,xml`, the following code
45
74
46
75
```go
@@ -63,31 +92,6 @@ type SortExample struct {
63
92
64
93
The fixed order is `json,xml`, so the tags `json` and `xml` will be sorted and aligned first, and the rest tags will be sorted and aligned in the dictionary order.
65
94
66
-
## Install
67
-
68
-
```bash
69
-
go install github.com/4meepo/tagalign/cmd/tagalign
70
-
```
71
-
72
-
## Usage
73
-
74
-
By default tagalign will only align tags, but not sort them. But alignment and sort can work together or separately.
75
-
76
-
If you don't want to align tags, you can use `-noalign` to disable alignment.
77
-
78
-
You can use `-sort` to enable sort and `-order` to set the fixed order of tags.
0 commit comments