Bläddra i källkod

Godoc and travis addition

Signed-off-by: Vishal Rana <vr@labstack.com>
Vishal Rana 10 år sedan
förälder
incheckning
ae8eb9b4f6
4 ändrade filer med 13 tillägg och 1 borttagningar
  1. 9 0
      .travis.yml
  2. 1 0
      README.md
  3. 2 1
      color/README.md
  4. 1 0
      color/color_test.go

+ 9 - 0
.travis.yml

@@ -0,0 +1,9 @@
+language: go
+go:
+    - tip
+before_install:
+    - go get github.com/axw/gocov/gocov
+    - go get github.com/mattn/goveralls
+    - go get golang.org/x/tools/cmd/cover
+script:
+    - $HOME/gopath/bin/goveralls -service=travis-ci

+ 1 - 0
README.md

@@ -1,3 +1,4 @@
 # Gommon
+[![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/labstack/gommon) [![Build Status](http://img.shields.io/travis/fatih/structs.svg?style=flat-square)](https://travis-ci.org/labstack/gommon) [![Coverage Status](http://img.shields.io/coveralls/labstack/echo.svg?style=flat-square)](https://coveralls.io/r/labstack/gommon)
 Common packages for Go
 - [Color](https://github.com/labstack/gommon/tree/master/color) - Style terminal text.

+ 2 - 1
color/README.md

@@ -50,5 +50,6 @@ fmt.Println(Green("bold green with white background", B, WhtBg))
 fmt.Println(Red("underline red", U))
 fmt.Println(Yellow("dim yellow", D))
 fmt.Println(Cyan("inverse cyan", In))
+fmt.Println(Blue("bold underline dim blue", B, U, D))
 ```
-![Combo](http://i.imgur.com/KPoXVfJ.png)
+![Combo](http://i.imgur.com/jWGq9Ca.png)

+ 1 - 0
color/color_test.go

@@ -49,4 +49,5 @@ func TestCombo(t *testing.T) {
 	fmt.Println(Red("underline red", U))
 	fmt.Println(Yellow("dim yellow", D))
 	fmt.Println(Cyan("inverse cyan", In))
+	fmt.Println(Blue("bold underline dim blue", B, U, D))
 }