You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced/how-to-create-a-registry.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
3
3
## File Naming Conventions
4
4
5
-
*`{{registry_name}}.go`: This file defines the registry, including key components like structs, interfaces, constants, and variables.
6
-
*`functions.go`: Contains the implementation of exported functions, making them accessible to other developers.
7
-
*`functions_test.go`: Includes tests for the exported functions to ensure they function as expected.
8
-
*`helpers.go`: Contains internal helper functions that support the registry but are not exposed for public use.
9
-
*`helpers_test.go`: Holds tests for the helper functions to validate their reliability.
5
+
-`{{registry_name}}.go`: This file defines the registry, including key components like structs, interfaces, constants, and variables.
6
+
-`functions.go`: Contains the implementation of exported functions, making them accessible to other developers.
7
+
-`functions_test.go`: Includes tests for the exported functions to ensure they function as expected.
8
+
-`helpers.go`: Contains internal helper functions that support the registry but are not exposed for public use.
9
+
-`helpers_test.go`: Holds tests for the helper functions to validate their reliability.
10
10
11
11
{% hint style="info" %}
12
12
This structure ensures consistency and maintainability across different registries, making it easier for developers to contribute and collaborate effectively.\
// Uid returns the unique identifier of the registry.
17
-
func (or*ExampleRegistry) Uid() string {
16
+
// UID returns the unique identifier of the registry.
17
+
func (or*ExampleRegistry) UID() string {
18
18
return"go-sprout/sprout.exampleofregistry"// ! Must be unique and in lowercase, replace `exampleofregistry` with your registry name and `go-sprout/sprout` with your handle name
0 commit comments