Run of fresh-snapshots for golang-github-k0kubun-pp

Try this locally (using silver-platter):

debian-svp new-upstream --snapshot golang-github-k0kubun-pp 

Merge these changes:

Summary

Merged new upstream version: 3.0.1+git20190425.ea9763a (was: 2.3.0).

Diff

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 310b107..f4e7e0b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,26 @@
 # Change Log
 
-## [Unreleased](https://github.com/k0kubun/pp/tree/HEAD)
+## [v3.0.0](https://github.com/k0kubun/pp/tree/v3.0.0) (2019-03-04)
+[Full Changelog](https://github.com/k0kubun/pp/compare/v2.4.0...v3.0.0)
 
-[Full Changelog](https://github.com/k0kubun/pp/compare/v2.1.0...HEAD)
+## [v2.4.0](https://github.com/k0kubun/pp/tree/v2.4.0) (2019-03-03)
+[Full Changelog](https://github.com/k0kubun/pp/compare/v2.3.0...v2.4.0)
+
+**Merged pull requests:**
+
+- Fix newline of map type [\#29](https://github.com/k0kubun/pp/pull/29) ([itchyny](https://github.com/itchyny))
+- add MIT license file [\#28](https://github.com/k0kubun/pp/pull/28) ([alteholz](https://github.com/alteholz))
+- Update the map printer to properly print maps. [\#25](https://github.com/k0kubun/pp/pull/25) ([denniszl](https://github.com/denniszl))
+
+## [v2.3.0](https://github.com/k0kubun/pp/tree/v2.3.0) (2017-01-23)
+[Full Changelog](https://github.com/k0kubun/pp/compare/v2.2.0...v2.3.0)
+
+**Merged pull requests:**
+
+- Add WithLineInfo method for print filename and line number along [\#24](https://github.com/k0kubun/pp/pull/24) ([huydx](https://github.com/huydx))
+
+## [v2.2.0](https://github.com/k0kubun/pp/tree/v2.2.0) (2015-07-23)
+[Full Changelog](https://github.com/k0kubun/pp/compare/v2.1.0...v2.2.0)
 
 **Closed issues:**
 
@@ -85,4 +103,4 @@
 
 
 
-\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
\ No newline at end of file
+\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..c2e6a4b
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Takashi Kokubun
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/README.md b/README.md
index 0d8f16b..fba9075 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# pp [![wercker status](https://app.wercker.com/status/6934c847631da2cf672e559f927a90b2/s "wercker status")](https://app.wercker.com/project/bykey/6934c847631da2cf672e559f927a90b2)
+# pp [![wercker status](https://app.wercker.com/status/fc5308fe78e92594f7ea09b67a486caf/s/master "wercker status")](https://app.wercker.com/project/byKey/fc5308fe78e92594f7ea09b67a486caf)
 
 Colored pretty printer for Go language
 
diff --git a/color.go b/color.go
index 403f329..202c853 100644
--- a/color.go
+++ b/color.go
@@ -22,7 +22,7 @@ const (
 	Cyan
 	White
 	bitsForeground       = 0
-	maskForegorund       = 0xf
+	maskForeground       = 0xf
 	ansiForegroundOffset = 30 - 1
 )
 
@@ -103,7 +103,7 @@ func colorize(text string, color uint16) string {
 		return text
 	}
 
-	foreground := color & maskForegorund >> bitsForeground
+	foreground := color & maskForeground >> bitsForeground
 	background := color & maskBackground >> bitsBackground
 	bold := color & maskBold
 
diff --git a/debian/changelog b/debian/changelog
index a50aa57..cb04287 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+golang-github-k0kubun-pp (3.0.1+git20190425.ea9763a-1) UNRELEASED; urgency=medium
+
+  * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Sun, 23 Jun 2019 04:19:24 +0000
+
 golang-github-k0kubun-pp (2.3.0-4) unstable; urgency=medium
 
   * Change Section from golang to devel.
diff --git a/printer.go b/printer.go
index 7934c7d..c7adee9 100644
--- a/printer.go
+++ b/printer.go
@@ -19,6 +19,8 @@ var (
 	// If the length of array or slice is larger than this,
 	// the buffer will be shorten as {...}.
 	BufferFoldThreshold = 1024
+	// PrintMapTypes when set to true will have map types will always appended to maps.
+	PrintMapTypes = true
 )
 
 func format(object interface{}) string {
@@ -155,7 +157,11 @@ func (p *printer) printMap() {
 	}
 	p.visited[p.value.Pointer()] = true
 
-	p.println("{")
+	if PrintMapTypes {
+		p.printf("%s{\n", p.typeString())
+	} else {
+		p.println("{")
+	}
 	p.indented(func() {
 		keys := p.value.MapKeys()
 		for i := 0; i < p.value.Len(); i++ {
diff --git a/printer_test.go b/printer_test.go
index cd2ada7..7558779 100644
--- a/printer_test.go
+++ b/printer_test.go
@@ -175,6 +175,16 @@ var (
 			}
 			`,
 		},
+		{
+			map[string]interface{}{"foo": 10, "bar": map[int]int{20: 30}}, `
+			[green]map[string]interface {}[reset]{
+			  [red][bold]"[reset][red]foo[reset][red][bold]"[reset]: [blue][bold]10[reset],
+			  [red][bold]"[reset][red]bar[reset][red][bold]"[reset]: [green]map[int]int[reset]{
+			    [blue][bold]20[reset]: [blue][bold]30[reset],
+			  },
+			}
+			`,
+		},
 	}
 
 	arr [3]int
diff --git a/wercker.yml b/wercker.yml
index 25c7a82..ef4d534 100644
--- a/wercker.yml
+++ b/wercker.yml
@@ -1,13 +1,8 @@
-box: wercker/golang
-# Build definition
+box: golang
 build:
-  # The steps that will be executed on build
   steps:
-    # Sets the go workspace and places you package
-    # at the right place in the workspace tree
     - setup-go-workspace
 
-    # Gets the dependencies
     - script:
         name: go get
         code: |
@@ -15,7 +10,6 @@ build:
           go version
           go get -t ./...
 
-    # Test the project
     - script:
         name: go test
         code: |

Full worker log Full build log