File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -16,23 +16,19 @@ limitations under the License.
16
16
17
17
package plugins
18
18
19
- // TypedName is a utility struct providing a type and a name
20
- // to plugins.
21
- // It implements the Plugin interface and can be embedded in
22
- // plugins across the code to reduce boilerplate.
19
+ const (
20
+ separator = "/"
21
+ )
22
+
23
+ // TypedName is a utility struct providing a type and a name to plugins.
23
24
type TypedName struct {
24
- // Type returns the type of the plugin.
25
+ // Type returns the type of a plugin.
25
26
Type string
26
- // Name returns the name of this plugin instance.
27
+ // Name returns the name of a plugin instance.
27
28
Name string
28
29
}
29
30
30
- const (
31
- Separator = "/"
32
- )
33
-
34
- // String returns the type and name rendered as
35
- // "<type>/<name>".
31
+ // String returns the type and name rendered as "<name>/<type>".
36
32
func (tn * TypedName ) String () string {
37
- return tn .Type + Separator + tn .Name
33
+ return tn .Name + separator + tn .Type
38
34
}
You can’t perform that action at this time.
0 commit comments