Skip to content

Commit a7c9d5c

Browse files
author
Alexander Félix
committed
Added go report card, fixed spelling error
1 parent 277f95e commit a7c9d5c

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Go overwrite
22

3-
[![GoDoc](https://img.shields.io/static/v1?label=godoc&message=reference&color=blue)](https://pkg.go.dev/github.com/phelian/overwrite) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
3+
[![GoDoc](https://img.shields.io/static/v1?label=godoc&message=reference&color=blue)](https://pkg.go.dev/github.com/phelian/overwrite) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Go Report Card](https://goreportcard.com/badge/github.com/phelian/overwrite)](https://goreportcard.com/report/github.com/phelian/overwrite)
44

55
Currently, overwrite requires Go version 1.13 or greater.
66

@@ -92,3 +92,8 @@ There types can be overwritten, others will be silently ignored
9292
- float32, float64
9393
Also
9494
- arrays, slices, maps and structs containing compatable types
95+
96+
# Up next
97+
98+
- Throw error on unsupported types with tags
99+
- Add tag to allow for configuration to only overwrite is destination struct is empty

do.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var (
3333
// Supported types
3434
// Simple types (string, intX, uintX, floatX, boolean)
3535
// Arrays, slices, maps of simple types
36-
// Structs with simple supported types (recursivly)
36+
// Structs with simple supported types (recursively)
3737
// Pointers are not supported atm
3838
//
3939
// The "omitempty" option specifies that the field should be omitted

do_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func TestNestedStructs(t *testing.T) {
5252

5353
type K struct {
5454
KN int `overwrite:"true"`
55-
KB string `overwrite:"true"`
55+
KB string `json:"kultur_bolaget" overwrite:"true"`
5656
T T
5757
}
5858

0 commit comments

Comments
 (0)