Skip to content

Commit

Permalink
added awesome badge. fixed typo in Int16
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyLoy committed Apr 4, 2019
1 parent 8526616 commit 48f7310
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Config
[![Documentation](https://godoc.org/github.com/JeremyLoy/config?status.svg)](http://godoc.org/github.com/JeremyLoy/config)
[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge-flat.svg)](https://github.com/avelino/awesome-go)
[![Build Status](https://travis-ci.org/JeremyLoy/config.svg?branch=master)](https://travis-ci.org/JeremyLoy/config)
[![Go Report Card](https://goreportcard.com/badge/github.com/JeremyLoy/config)](https://goreportcard.com/report/github.com/JeremyLoy/config)
[![Coverage Status](https://coveralls.io/repos/github/JeremyLoy/config/badge.svg?branch=master)](https://coveralls.io/github/JeremyLoy/config?branch=master)
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func convertAndSetValue(settable interface{}, s string) {
val, _ := strconv.ParseInt(s, 10, 8)
settableValue.SetInt(val)
case reflect.Int16:
val, _ := strconv.ParseInt(s, 10, 26)
val, _ := strconv.ParseInt(s, 10, 16)
settableValue.SetInt(val)
case reflect.Int32:
val, _ := strconv.ParseInt(s, 10, 32)
Expand Down

0 comments on commit 48f7310

Please sign in to comment.