Add gomodTidy to postUpdateOptions in renovate.json (#50)

This will lead to `go mod tidy` being run after go module updates to
purge unused verison hashes from go.sum

See https://docs.renovatebot.com/configuration-options/#postupdateoptions
for details.
1 file changed
tree: b8b829181112e664518684aab7acb6f05e5f5332
  1. .github/
  2. .travis.yml
  3. LICENSE
  4. README.md
  5. doc.go
  6. example_test.go
  7. go.mod
  8. go.sum
  9. go.test.sh
  10. isatty_android.go
  11. isatty_bsd.go
  12. isatty_others.go
  13. isatty_others_test.go
  14. isatty_plan9.go
  15. isatty_solaris.go
  16. isatty_tcgets.go
  17. isatty_windows.go
  18. isatty_windows_test.go
  19. renovate.json
README.md

go-isatty

Godoc Reference Codecov Coverage Status Go Report Card

isatty for golang

Usage

package main

import (
	"fmt"
	"github.com/mattn/go-isatty"
	"os"
)

func main() {
	if isatty.IsTerminal(os.Stdout.Fd()) {
		fmt.Println("Is Terminal")
	} else if isatty.IsCygwinTerminal(os.Stdout.Fd()) {
		fmt.Println("Is Cygwin/MSYS2 Terminal")
	} else {
		fmt.Println("Is Not Terminal")
	}
}

Installation

$ go get github.com/mattn/go-isatty

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)

Thanks