Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: fatih/color
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.7.0
Choose a base ref
...
head repository: fatih/color
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.8.0
Choose a head ref
  • 7 commits
  • 133 files changed
  • 2 contributors

Commits on May 16, 2018

  1. Update go version in Travis

    fatih committed May 16, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    cfd0f8b View commit details
  2. Merge pull request #97 from fatih/update-travis-version

    Update go version in Travis
    fatih authored May 16, 2018
    Copy the full SHA
    2d68451 View commit details

Commits on Oct 7, 2018

  1. Bump Go versions

    AlekSi authored Oct 7, 2018
    Copy the full SHA
    9840b47 View commit details

Commits on Oct 10, 2018

  1. Merge pull request #107 from AlekSi/patch-1

    Bump Go versions
    fatih authored Oct 10, 2018
    Copy the full SHA
    12882ec View commit details
  2. Closing a chapter in my life

    fatih committed Oct 10, 2018
    Copy the full SHA
    3f9d52f View commit details

Commits on Jan 1, 2020

  1. Add Go modules update

    * Remove Gopkg.toml files
    * Remove .travis.yml file
    * Update to Go modules
    * Update `/vendor` folder
    * Add GitHub Actions workflow
    fatih committed Jan 1, 2020
    Copy the full SHA
    d747421 View commit details
  2. Merge pull request #108 from fatih/support-modules

    Add Go modules update
    fatih authored Jan 1, 2020
    Copy the full SHA
    2e5e248 View commit details
Showing with 53 additions and 18,449 deletions.
  1. +25 −0 .github/workflows/go.yml
  2. +0 −5 .travis.yml
  3. +0 −27 Gopkg.lock
  4. +0 −30 Gopkg.toml
  5. +7 −4 README.md
  6. +9 −0 go.mod
  7. +6 −0 go.sum
  8. +0 −16 vendor/github.com/mattn/go-colorable/_example/escape-seq/main.go
  9. +0 −16 vendor/github.com/mattn/go-colorable/_example/logrus/main.go
  10. +0 −14 vendor/github.com/mattn/go-colorable/_example/title/main.go
  11. +0 −83 vendor/github.com/mattn/go-colorable/colorable_test.go
  12. +0 −18 vendor/github.com/mattn/go-isatty/example_test.go
  13. +0 −19 vendor/github.com/mattn/go-isatty/isatty_others_test.go
  14. +0 −35 vendor/github.com/mattn/go-isatty/isatty_windows_test.go
  15. +0 −10 vendor/golang.org/x/sys/.gitattributes
  16. +0 −2 vendor/golang.org/x/sys/.gitignore
  17. +0 −31 vendor/golang.org/x/sys/CONTRIBUTING.md
  18. +0 −18 vendor/golang.org/x/sys/README.md
  19. +0 −1 vendor/golang.org/x/sys/codereview.cfg
  20. +0 −8 vendor/golang.org/x/sys/plan9/asm.s
  21. +0 −30 vendor/golang.org/x/sys/plan9/asm_plan9_386.s
  22. +0 −30 vendor/golang.org/x/sys/plan9/asm_plan9_amd64.s
  23. +0 −25 vendor/golang.org/x/sys/plan9/asm_plan9_arm.s
  24. +0 −70 vendor/golang.org/x/sys/plan9/const_plan9.go
  25. +0 −212 vendor/golang.org/x/sys/plan9/dir_plan9.go
  26. +0 −31 vendor/golang.org/x/sys/plan9/env_plan9.go
  27. +0 −50 vendor/golang.org/x/sys/plan9/errors_plan9.go
  28. +0 −138 vendor/golang.org/x/sys/plan9/mkall.sh
  29. +0 −246 vendor/golang.org/x/sys/plan9/mkerrors.sh
  30. +0 −319 vendor/golang.org/x/sys/plan9/mksyscall.pl
  31. +0 −23 vendor/golang.org/x/sys/plan9/mksysnum_plan9.sh
  32. +0 −21 vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go
  33. +0 −23 vendor/golang.org/x/sys/plan9/pwd_plan9.go
  34. +0 −30 vendor/golang.org/x/sys/plan9/race.go
  35. +0 −25 vendor/golang.org/x/sys/plan9/race0.go
  36. +0 −22 vendor/golang.org/x/sys/plan9/str.go
  37. +0 −74 vendor/golang.org/x/sys/plan9/syscall.go
  38. +0 −349 vendor/golang.org/x/sys/plan9/syscall_plan9.go
  39. +0 −33 vendor/golang.org/x/sys/plan9/syscall_test.go
  40. +0 −292 vendor/golang.org/x/sys/plan9/zsyscall_plan9_386.go
  41. +0 −292 vendor/golang.org/x/sys/plan9/zsyscall_plan9_amd64.go
  42. +0 −284 vendor/golang.org/x/sys/plan9/zsyscall_plan9_arm.go
  43. +0 −49 vendor/golang.org/x/sys/plan9/zsysnum_plan9.go
  44. +0 −152 vendor/golang.org/x/sys/unix/creds_test.go
  45. +0 −51 vendor/golang.org/x/sys/unix/dev_darwin_test.go
  46. +0 −50 vendor/golang.org/x/sys/unix/dev_dragonfly_test.go
  47. +0 −53 vendor/golang.org/x/sys/unix/dev_linux_test.go
  48. +0 −50 vendor/golang.org/x/sys/unix/dev_netbsd_test.go
  49. +0 −54 vendor/golang.org/x/sys/unix/dev_openbsd_test.go
  50. +0 −51 vendor/golang.org/x/sys/unix/dev_solaris_test.go
  51. +0 −9 vendor/golang.org/x/sys/unix/export_test.go
  52. +0 −51 vendor/golang.org/x/sys/unix/linux/Dockerfile
  53. +0 −482 vendor/golang.org/x/sys/unix/linux/mkall.go
  54. +0 −85 vendor/golang.org/x/sys/unix/linux/mksysnum.pl
  55. +0 −670 vendor/golang.org/x/sys/unix/linux/types.go
  56. 0 vendor/golang.org/x/sys/unix/mkall.sh
  57. 0 vendor/golang.org/x/sys/unix/mkerrors.sh
  58. +0 −97 vendor/golang.org/x/sys/unix/mkpost.go
  59. 0 vendor/golang.org/x/sys/unix/mksyscall.pl
  60. 0 vendor/golang.org/x/sys/unix/mksyscall_solaris.pl
  61. 0 vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
  62. 0 vendor/golang.org/x/sys/unix/mksysnum_darwin.pl
  63. 0 vendor/golang.org/x/sys/unix/mksysnum_dragonfly.pl
  64. 0 vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
  65. 0 vendor/golang.org/x/sys/unix/mksysnum_netbsd.pl
  66. 0 vendor/golang.org/x/sys/unix/mksysnum_openbsd.pl
  67. +0 −35 vendor/golang.org/x/sys/unix/mmap_unix_test.go
  68. +0 −113 vendor/golang.org/x/sys/unix/openbsd_test.go
  69. +0 −93 vendor/golang.org/x/sys/unix/syscall_bsd_test.go
  70. +0 −297 vendor/golang.org/x/sys/unix/syscall_freebsd_test.go
  71. +0 −439 vendor/golang.org/x/sys/unix/syscall_linux_test.go
  72. +0 −55 vendor/golang.org/x/sys/unix/syscall_solaris_test.go
  73. +0 −60 vendor/golang.org/x/sys/unix/syscall_test.go
  74. +0 −446 vendor/golang.org/x/sys/unix/syscall_unix_test.go
  75. +0 −54 vendor/golang.org/x/sys/unix/timestruct_test.go
  76. +0 −277 vendor/golang.org/x/sys/unix/types_darwin.go
  77. +0 −280 vendor/golang.org/x/sys/unix/types_dragonfly.go
  78. +0 −402 vendor/golang.org/x/sys/unix/types_freebsd.go
  79. +0 −270 vendor/golang.org/x/sys/unix/types_netbsd.go
  80. +0 −282 vendor/golang.org/x/sys/unix/types_openbsd.go
  81. +0 −283 vendor/golang.org/x/sys/unix/types_solaris.go
  82. +0 −13 vendor/golang.org/x/sys/windows/asm_windows_386.s
  83. +0 −13 vendor/golang.org/x/sys/windows/asm_windows_amd64.s
  84. +0 −378 vendor/golang.org/x/sys/windows/dll_windows.go
  85. +0 −29 vendor/golang.org/x/sys/windows/env_windows.go
  86. +0 −20 vendor/golang.org/x/sys/windows/eventlog.go
  87. +0 −97 vendor/golang.org/x/sys/windows/exec_windows.go
  88. +0 −26 vendor/golang.org/x/sys/windows/memory_windows.go
  89. +0 −7 vendor/golang.org/x/sys/windows/mksyscall.go
  90. +0 −30 vendor/golang.org/x/sys/windows/race.go
  91. +0 −25 vendor/golang.org/x/sys/windows/race0.go
  92. +0 −11 vendor/golang.org/x/sys/windows/registry/export_test.go
  93. +0 −200 vendor/golang.org/x/sys/windows/registry/key.go
  94. +0 −7 vendor/golang.org/x/sys/windows/registry/mksyscall.go
  95. +0 −756 vendor/golang.org/x/sys/windows/registry/registry_test.go
  96. +0 −32 vendor/golang.org/x/sys/windows/registry/syscall.go
  97. +0 −384 vendor/golang.org/x/sys/windows/registry/value.go
  98. +0 −120 vendor/golang.org/x/sys/windows/registry/zsyscall_windows.go
  99. +0 −476 vendor/golang.org/x/sys/windows/security_windows.go
  100. +0 −164 vendor/golang.org/x/sys/windows/service.go
  101. +0 −22 vendor/golang.org/x/sys/windows/str.go
  102. +0 −56 vendor/golang.org/x/sys/windows/svc/debug/log.go
  103. +0 −45 vendor/golang.org/x/sys/windows/svc/debug/service.go
  104. +0 −48 vendor/golang.org/x/sys/windows/svc/event.go
  105. +0 −80 vendor/golang.org/x/sys/windows/svc/eventlog/install.go
  106. +0 −70 vendor/golang.org/x/sys/windows/svc/eventlog/log.go
  107. +0 −51 vendor/golang.org/x/sys/windows/svc/eventlog/log_test.go
  108. +0 −22 vendor/golang.org/x/sys/windows/svc/example/beep.go
  109. +0 −92 vendor/golang.org/x/sys/windows/svc/example/install.go
  110. +0 −76 vendor/golang.org/x/sys/windows/svc/example/main.go
  111. +0 −62 vendor/golang.org/x/sys/windows/svc/example/manage.go
  112. +0 −82 vendor/golang.org/x/sys/windows/svc/example/service.go
  113. +0 −24 vendor/golang.org/x/sys/windows/svc/go12.c
  114. +0 −11 vendor/golang.org/x/sys/windows/svc/go12.go
  115. +0 −31 vendor/golang.org/x/sys/windows/svc/go13.go
  116. +0 −139 vendor/golang.org/x/sys/windows/svc/mgr/config.go
  117. +0 −162 vendor/golang.org/x/sys/windows/svc/mgr/mgr.go
  118. +0 −169 vendor/golang.org/x/sys/windows/svc/mgr/mgr_test.go
  119. +0 −72 vendor/golang.org/x/sys/windows/svc/mgr/service.go
  120. +0 −62 vendor/golang.org/x/sys/windows/svc/security.go
  121. +0 −363 vendor/golang.org/x/sys/windows/svc/service.go
  122. +0 −118 vendor/golang.org/x/sys/windows/svc/svc_test.go
  123. +0 −68 vendor/golang.org/x/sys/windows/svc/sys_386.s
  124. +0 −42 vendor/golang.org/x/sys/windows/svc/sys_amd64.s
  125. +0 −71 vendor/golang.org/x/sys/windows/syscall.go
  126. +0 −53 vendor/golang.org/x/sys/windows/syscall_test.go
  127. +0 −1,153 vendor/golang.org/x/sys/windows/syscall_windows.go
  128. +0 −107 vendor/golang.org/x/sys/windows/syscall_windows_test.go
  129. +0 −1,333 vendor/golang.org/x/sys/windows/types_windows.go
  130. +0 −22 vendor/golang.org/x/sys/windows/types_windows_386.go
  131. +0 −22 vendor/golang.org/x/sys/windows/types_windows_amd64.go
  132. +0 −2,687 vendor/golang.org/x/sys/windows/zsyscall_windows.go
  133. +6 −0 vendor/modules.txt
25 changes: 25 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Go
on: [push]
jobs:

test-build:
name: Test & Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1

- name: Test
run: |
go mod tidy -v
go test -race ./...
- name: Build
run: go build ./...
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

27 changes: 0 additions & 27 deletions Gopkg.lock

This file was deleted.

30 changes: 0 additions & 30 deletions Gopkg.toml

This file was deleted.

11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Color [![GoDoc](https://godoc.org/github.com/fatih/color?status.svg)](https://godoc.org/github.com/fatih/color) [![Build Status](https://img.shields.io/travis/fatih/color.svg?style=flat-square)](https://travis-ci.org/fatih/color)
# Archived project. No maintenance.

This project is not maintained anymore and is archived. Feel free to fork and
make your own changes if needed. For more detail read my blog post: [Taking an indefinite sabbatical from my projects](https://arslan.io/2018/10/09/taking-an-indefinite-sabbatical-from-my-projects/)

Thanks to everyone for their valuable feedback and contributions.


# Color [![GoDoc](https://godoc.org/github.com/fatih/color?status.svg)](https://godoc.org/github.com/fatih/color)

Color lets you use colorized outputs in terms of [ANSI Escape
Codes](http://en.wikipedia.org/wiki/ANSI_escape_code#Colors) in Go (Golang). It
@@ -17,9 +23,6 @@ suits you.
go get github.com/fatih/color
```

Note that the `vendor` folder is here for stability. Remove the folder if you
already have the dependencies in your GOPATH.

## Examples

### Standard colors
9 changes: 9 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module github.com/fatih/color

go 1.13

require (
github.com/mattn/go-colorable v0.0.9
github.com/mattn/go-isatty v0.0.3
golang.org/x/sys v0.0.0-20180202135801-37707fdb30a5 // indirect
)
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
github.com/mattn/go-colorable v0.0.9 h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-isatty v0.0.3 h1:ns/ykhmWi7G9O+8a448SecJU3nSMBXJfqQkl0upE1jI=
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
golang.org/x/sys v0.0.0-20180202135801-37707fdb30a5 h1:MF92a0wJ3gzSUVBpjcwdrDr5+klMFRNEEu6Mev4n00I=
golang.org/x/sys v0.0.0-20180202135801-37707fdb30a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
16 changes: 0 additions & 16 deletions vendor/github.com/mattn/go-colorable/_example/escape-seq/main.go

This file was deleted.

16 changes: 0 additions & 16 deletions vendor/github.com/mattn/go-colorable/_example/logrus/main.go

This file was deleted.

14 changes: 0 additions & 14 deletions vendor/github.com/mattn/go-colorable/_example/title/main.go

This file was deleted.

83 changes: 0 additions & 83 deletions vendor/github.com/mattn/go-colorable/colorable_test.go

This file was deleted.

18 changes: 0 additions & 18 deletions vendor/github.com/mattn/go-isatty/example_test.go

This file was deleted.

19 changes: 0 additions & 19 deletions vendor/github.com/mattn/go-isatty/isatty_others_test.go

This file was deleted.

35 changes: 0 additions & 35 deletions vendor/github.com/mattn/go-isatty/isatty_windows_test.go

This file was deleted.

10 changes: 0 additions & 10 deletions vendor/golang.org/x/sys/.gitattributes

This file was deleted.

2 changes: 0 additions & 2 deletions vendor/golang.org/x/sys/.gitignore

This file was deleted.

31 changes: 0 additions & 31 deletions vendor/golang.org/x/sys/CONTRIBUTING.md

This file was deleted.

Loading