Signature | Bcrypt(input string) (string, error)
@@ -47,7 +47,7 @@ Be careful, this method use the default cost of the library and can cause securi
The function generates an Htpasswd hash from the given username and password strings, typically used for basic authentication in web servers.
{% hint style="warning" %}
-Be careful, this method use the default cost of the library and can cause security vulnerabilities.
+Be careful, this method uses the default cost of the library and can cause security vulnerabilities.
{% endhint %}
Name | Value |
---|
Signature | Htpasswd(username string, password string) (string, error)
diff --git a/docs/registries/list-of-all-registries.md b/docs/registries/list-of-all-registries.md
index da0cbf0..b7cf851 100644
--- a/docs/registries/list-of-all-registries.md
+++ b/docs/registries/list-of-all-registries.md
@@ -33,5 +33,5 @@ Every function is categorized into a registry and may include a [**'must'** vers
{% hint style="info" %}
You can open an issue to ask to be listed here. We are a community :seedling:
-And maybe your registry will be embed on sprout directly, who know :eyes:
+And maybe your registry will be embedded on sprout directly, who know :eyes:
{% endhint %}
diff --git a/docs/registries/network.md b/docs/registries/network.md
index 42fbedb..af3b87f 100644
--- a/docs/registries/network.md
+++ b/docs/registries/network.md
@@ -227,7 +227,7 @@ CIDRSize calculates the total number of IP addresses in the given CIDR block. It
CIDRRangeList generates a list of all IP addresses within the given CIDR block. It works for both IPv4 and IPv6 CIDR blocks, returning a list of all IP addresses as strings. This function is useful for iterating over all IP addresses in a CIDR block or generating a list of IP addresses for further processing.
{% hint style="warning" %}
-Be careful, this method can generate a large number of IP addresses for large CIDR blocks, which may consume a significant amount of memory and processing time.
+Be careful, this method can generate numerous IP addresses for large CIDR blocks, which may consume a significant amount of memory and processing time.
{% endhint %}
diff --git a/docs/registries/reflect.md b/docs/registries/reflect.md
index 1daccb7..fa9e859 100644
--- a/docs/registries/reflect.md
+++ b/docs/registries/reflect.md
@@ -17,7 +17,7 @@ import "github.com/go-sprout/sprout/registry/reflect"
### typeIs
-The function compares the type of a given value (`src`) to a specified target type string (`target`). It returns `true` if the type of `src` matches the target type.
+The function compares the type of the provided value (`src`) to a specified target type string (`target`). It returns `true` if the type of `src` matches the target type.
Name | Value |
---|
Signature | TypeIs(target string, src any) bool
|
@@ -32,7 +32,7 @@ The function compares the type of a given value (`src`) to a specified target ty
### typeIsLike
-The function compares the type of a given value (`src`) to a target type string (`target`), with an option for a wildcard `*` prefix (pointer). It returns `true` if `src` matches `target` or `*target`, which is useful for checking if a variable is of a specific type or a pointer to that type.
+The function compares the type of the provided value (`src`) to a target type string (`target`), with an option for a wildcard `*` prefix (pointer). It returns `true` if `src` matches `target` or `*target`, which is useful for checking if a variable is of a specific type or a pointer to that type.
Name | Value |
---|
Signature | TypeIsLike(target string, src any) bool
|
diff --git a/docs/registries/slices.md b/docs/registries/slices.md
index 604089f..3e560ed 100644
--- a/docs/registries/slices.md
+++ b/docs/registries/slices.md
@@ -79,7 +79,7 @@ The function merges multiple lists into a single, unified list, combining all el
### chunk
-The function divides a list into smaller, equally sized chunks based on the specified size, breaking the original list into manageable sublists.
+The function divides a list into smaller, equally sized chunks based on the specified size, breaking the original list into manageable sub-lists.
Name | Value |
---|
Signature | Chunk(size int, list any) ([][]any, error)
|
@@ -129,7 +129,7 @@ The function removes `nil` and zero-value elements from a list, leaving only non
### flatten
-The function flattens a list into a single-dimensional array, removing nested lists andcombining all elements into a single list.
+The function flattens a list into a single-dimensional array, removing nested lists and combining all elements into a single list.
Name | Value |
---|
Signature | Flatten(list any) ([]any, error)
|
diff --git a/docs/registries/time.md b/docs/registries/time.md
index dc1f022..1e8403a 100644
--- a/docs/registries/time.md
+++ b/docs/registries/time.md
@@ -115,7 +115,7 @@ The function returns the Unix epoch timestamp for a given date.
### dateModify
-The function adjusts a given date by a specified duration, returning the modified date. If the duration format is incorrect, it returns the original date without any changes, in case of must version, an error are returned.
+The function adjusts a given date by a specified duration, returning the modified date. If the duration format is incorrect, it returns the original date without any changes, in case of must version, an error is returned.
Name | Value |
---|
Signature | DateModify(fmt string, date time.Time) (time.Time, error)
|
diff --git a/docs/roadmap-to-sprout-v1.0.md b/docs/roadmap-to-sprout-v1.0.md
index 1f9975e..ca09c54 100644
--- a/docs/roadmap-to-sprout-v1.0.md
+++ b/docs/roadmap-to-sprout-v1.0.md
@@ -8,7 +8,7 @@ description: The roadmap to grow the sprout
## Key Objectives
{% hint style="info" %}
-All objectives are get from feedback, suggestions and personal knowledge. You can discuss about the v1.0 directly [in the issue on GitHub](https://github.com/go-sprout/sprout/issues/1).
+All objectives comes from feedback, suggestions and personal knowledge. You can discuss the v1.0 directly [in the issue on GitHub](https://github.com/go-sprout/sprout/issues/1).
{% endhint %}
### :white\_check\_mark: Minimize Dependencies - **DONE**
@@ -24,7 +24,7 @@ Dependencies have been minimized and optimized across all registries.
Provide comprehensive, easy-to-understand documentation that covers all functionalities, use cases, and examples to improve the developer experience.
{% hint style="success" %}
-This feature are implemented on v0.5.0, documentations can be found here:
+These features are implemented on v0.5.0, documentations can be found here:
You are on the official documentation site :tada:
{% endhint %}
@@ -48,7 +48,7 @@ Aim to minimize memory allocations as much as possible to alleviate the burden o
Follow default go template error handling mechanisms for all functions to ensure that errors are managed gracefully and efficiently.
{% hint style="success" %}
-This feature are implemented on v0.6.0, documentation can be found here:
+These features are implemented on v0.6.0, documentation can be found here:
[safe-functions.md](features/safe-functions.md "mention")
{% endhint %}
@@ -62,7 +62,7 @@ Add a broader array of functions without imposing limitations, enabling users to
Allow users to customize which functions to load into their runtime environment, preventing unnecessary resource consumption and enhancing performance.
{% hint style="success" %}
-This feature are implemented on v0.5.0, documentations can be found here:
+These features are implemented on v0.5.0, documentations can be found here:
[loader-system-registry.md](features/loader-system-registry.md "mention")
@@ -71,10 +71,10 @@ This feature are implemented on v0.5.0, documentations can be found here:
### :white\_check\_mark: Function Aliasing - **DONE**
-Enable the creation of aliases for functions outside of the library, providing flexibility and convenience in how functions are accessed and utilized.
+Enable the creation of aliases for functions outside the library, providing flexibility and convenience in how functions are accessed and utilized.
{% hint style="success" %}
-This feature are implemented on v0.3.0, documentation can be found here :
+These features are implemented on v0.3.0, documentation can be found here :
[function-aliases.md](features/function-aliases.md "mention")
{% endhint %}
@@ -85,7 +85,7 @@ When you are a middle-app (between sprout and the user how write the template),
The solution are to embed a notice system in the template library to warn the end-user of a deprecation and let x versions between the deprecation notice and the replacement / removal of the function.
{% hint style="success" %}
-This feature are implemented on v0.6.0, documentation can be found here :\
+These features are implemented on v0.6.0, documentation can be found here :\
[broken-reference](broken-reference/ "mention")
{% endhint %}
@@ -103,4 +103,4 @@ This page will be updated each time function are re-implemented correctly in Spr
A list of functions wanted for v1 based on issues, pull requests from sprig, feedback on sprout. All functions listed here will be implemented for the v1.
-DONE | Functions | Description |
---|
true | toYaml | Convert a struct to a YAML String | true | fromYaml | Convert YAML String to a struct | true | toBool | Convert any to a boolean | true | toDuration | Convert any to a time.Duration | true | default ,empty ,coalesce | Dont trigger default go value as false | true | dig | Dig into a map without crashes in format book.author.name | true | sha512sum | Support of SHA512 | true | md5sum | Support of md5 hash | true | hasField | Detect if a field are present in an object using reflect. Source | true | toDuration | convert a value to a time.Duration | true | toCamelCase , toPascalCase , toKebakCase , toDotCase , topathCase , toConstantCase ,toSnakeCase ,toTitleCase | A batch of functions to change casing of a string to aby casing you want. | true | capitalize , uncapitalize | Capitalize / Uncapitalize a string (Upper/lower only the first character) | true | flatten | Flatten nested list be one level | true | regexpFindSubmatch , regexpAllSubmatches ,regexpFindNamedSubmatch , regexpAllNamedSubmatches | Collection of function to found and retrieve submatches and named submatches | true | cidr , ip , mac | A collection of functions for network ip manipulation | true | toLocalDate | Convert to a time.Time with a timezone support |
+DONE | Functions | Description |
---|
true | toYaml | Convert a struct to a YAML String | true | fromYaml | Convert YAML String to a struct | true | toBool | Convert any to a boolean | true | toDuration | Convert any to a time.Duration | true | default ,empty ,coalesce | Don't trigger default go value as false | true | dig | Dig into a map without crashes in format book.author.name | true | sha512sum | Support of SHA512 | true | md5sum | Support of md5 hash | true | hasField | Detect if a field are present in an object using reflect. Source | true | toDuration | convert a value to a time.Duration | true | toCamelCase , toPascalCase , toKebakCase , toDotCase , topathCase , toConstantCase ,toSnakeCase ,toTitleCase | A batch of functions to change casing of a string to aby casing you want. | true | capitalize , uncapitalize | Capitalize / Uncapitalize a string (Upper/lower only the first character) | true | flatten | Flatten nested list be one level | true | regexpFindSubmatch , regexpAllSubmatches ,regexpFindNamedSubmatch , regexpAllNamedSubmatches | Collection of function to found and retrieve submatches and named submatches | true | cidr , ip , mac | A collection of functions for network ip manipulation | true | toLocalDate | Convert to a time.Time with a timezone support |
|
|