From 914ec6e54c655a0bfa898b41ef4f862e7ff43b79 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Wed, 22 Mar 2023 18:00:50 +0200 Subject: [PATCH 1/2] correct typos in README Replace Golang with Go. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index db70921..8c0e4fb 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# Golang Tag Align +# Go Tag Align ![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/4meepo/tagalign?style=flat-square) [![codecov](https://codecov.io/gh/4meepo/tagalign/branch/main/graph/badge.svg)](https://app.codecov.io/github/4meepo/tagalign) [![GoDoc](https://godoc.org/github.com/4meepo/tagalign?status.svg)](https://pkg.go.dev/github.com/4meepo/tagalign) [![Go Report Card](https://goreportcard.com/badge/github.com/4meepo/tagalign)](https://goreportcard.com/report/github.com/4meepo/tagalign) -TagAlign is used to align and sort tags in golang struct. It can make the struct more readable and easy to maintain. +TagAlign is used to align and sort tags in Go struct. It can make the struct more readable and easier to maintain. For example, this struct @@ -86,4 +86,4 @@ tagalign -fix -auto-sort -fixed-order "json,xml" {package path} [Autofix Example](https://github.com/golangci/golangci-lint/pull/2450/files) -[Integraing](https://disaev.me/p/writing-useful-go-analysis-linter/#integrating) +[Integrating](https://disaev.me/p/writing-useful-go-analysis-linter/#integrating) From 178b962962ba806dc78a0d1dd837d58eeb78ee57 Mon Sep 17 00:00:00 2001 From: Yifei Liu <28745416+4meepo@users.noreply.github.com> Date: Thu, 23 Mar 2023 00:13:49 +0800 Subject: [PATCH 2/2] fix typo --- cmd/tagalign/tagalign.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tagalign/tagalign.go b/cmd/tagalign/tagalign.go index 32b0c16..68ef95f 100644 --- a/cmd/tagalign/tagalign.go +++ b/cmd/tagalign/tagalign.go @@ -13,7 +13,7 @@ func main() { var autoSort bool var fixedOrder string - // Just for declase + // just for declaration flag.BoolVar(&autoSort, "auto-sort", false, "enable auto sort tags") flag.StringVar(&fixedOrder, "fixed-order", "", "specify the fixed order of tags, the other tags will be sorted by name")