From 604f0e4cee3068ecfc2616fd972d93b7bf07d6f6 Mon Sep 17 00:00:00 2001 From: Vinetwigs <76442764+Vinetwigs@users.noreply.github.com> Date: Mon, 6 Jun 2022 22:04:47 +0200 Subject: [PATCH 1/4] Update go.mod --- go.mod | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/go.mod b/go.mod index ecd8f28..47193d8 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,3 @@ -<<<<<<< HEAD module github.com/Vinetwigs/stres -======= -module github.com/Vinetwigs/str-res/stres ->>>>>>> 440073030b271c369b64fd998b74932e645855cb -go 1.17 \ No newline at end of file +go 1.17 From e41d16d569621bf78cfdfeed9ff64eb037cc6792 Mon Sep 17 00:00:00 2001 From: Vinetwigs <76442764+Vinetwigs@users.noreply.github.com> Date: Tue, 7 Jun 2022 12:18:51 +0200 Subject: [PATCH 2/4] Update README.md --- README.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index da827a1..24a8f67 100644 --- a/README.md +++ b/README.md @@ -149,9 +149,9 @@ type Nesting struct { `String, err := stres.NewString("name", "value")` -| Parameter | Type | Description | -|-----------|--------|---------------------------------------|---|---|---|---|---|---|---| -| name | string | unique name to identify the string | | | | | | | | +| Parameter | Type | Description | +|-----------|--------|---------------------------------------| +| name | string | unique name to identify the string | | value | string | string to associate to the given name | Returns String instance and error. @@ -163,10 +163,10 @@ Returns String instance and error. `strArr, err := stres.NewStringArray("name", []string{"value1","value2",...})` -| Parameter | Type | Description | -|-----------|--------|---------------------------------------|---|---|---|---|---|---|---| -| name | string | unique name to identify the string | | | | | | | | -| values | []string | array of strings to associate to the given name | +| Parameter | Type | Description | +|-----------|--------|---------------------------------------| +| name | string | unique name to identify the string | +| values | []string | array of strings to associate to the given name | Returns StringArray instance and error. @@ -178,8 +178,8 @@ Returns StringArray instance and error. `qntStr, err := stres.NewQuantityString("name", []string{"zero","one", "two", ...})` | Parameter | Type | Description | -|-----------|--------|---------------------------------------|---|---|---|---|---|---|---| -| name | string | unique name to identify the string | | | | | | | | +|-----------|--------|---------------------------------------| +| name | string | unique name to identify the string | | values | []string | array of strings for quantities to associate to the given name | Returns Plural instance and error. @@ -192,8 +192,8 @@ Returns Plural instance and error. `stres.SetFewThreshold(25)` | Parameter | Type | Description | -|-----------|--------|---------------------------------------|---|---|---|---|---|---|---| -| value | int | new value for 'few' threshold | | | | | | | | +|-----------|--------|---------------------------------------| +| value | int | new value for 'few' threshold | Returns Plural instance and error. @@ -205,8 +205,8 @@ Returns Plural instance and error. `str := GetString("name")` | Parameter | Type | Description | -|-----------|--------|---------------------------------------|---|---|---|---|---|---|---| -| name | string | unique name given to the corresponding string | | | | | | | | +|-----------|--------|---------------------------------------| +| name | string | unique name given to the corresponding string | Returns a string. @@ -218,8 +218,8 @@ Returns a string. `strArr := GetStringArray("name")` | Parameter | Type | Description | -|-----------|--------|---------------------------------------|---|---|---|---|---|---|---| -| name | string | unique name given to the corresponding string-array | | | | | | | | +|-----------|--------|---------------------------------------| +| name | string | unique name given to the corresponding string-array | Returns an array of strings. @@ -231,10 +231,10 @@ Returns an array of strings. `strArr := GetQuantityString("name", 10)` | Parameter | Type | Description | -|-----------|--------|---------------------------------------|---|---|---|---|---|---|---| -| name | string | unique name to identify the string | | | | | | | | +|-----------|--------|---------------------------------------| +| name | string | unique name to identify the string | | count | int | quantity to fetch the corresponding string | Returns a string. -[Back to top](#table-of-contents) \ No newline at end of file +[Back to top](#table-of-contents) From 373cf3b8b4653541330a32848d564f4d2b70eac5 Mon Sep 17 00:00:00 2001 From: Vinetwigs <76442764+Vinetwigs@users.noreply.github.com> Date: Tue, 7 Jun 2022 13:10:47 +0200 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 24a8f67..88a0074 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![License](https://img.shields.io/badge/License-Apache_License_2.0-orange)](#license) [![issues - vilmos](https://img.shields.io/github/issues/Vinetwigs/stres)](https://github.com/Vinetwigs/stres/issues) -

stres - String resources in Go

+

stres - Android Studio string resources in Go

A simple and easy-to-use library to import and export string resources into your Go applications just like you would do in Android Studio. From 93c21710fc065f52ba1132b7f7ce4060f9d80159 Mon Sep 17 00:00:00 2001 From: Vinetwigs <76442764+Vinetwigs@users.noreply.github.com> Date: Tue, 7 Jun 2022 13:18:09 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 88a0074..c36117c 100644 --- a/README.md +++ b/README.md @@ -238,3 +238,9 @@ Returns an array of strings. Returns a string. [Back to top](#table-of-contents) + +## Contributors + + + +