Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Add optional attributes [key:value] pair #1

@LukaGiorgadze

Description

@LukaGiorgadze

Add optional Attributes field for ModuleConfig

type ModuleConfig struct {
	...
	Attributes    map[string]string
	....
}

These attributes will be accessible within the module with the help of Module Development Kit mdk.

val := mdk.Attr("key") // val or nil
//  Or mdk.GetAttr("key") ? 

optionally, good to have built-in converters:

val := mdk.Attr("name").String()
val := mdk.Attr("age").Int()
...

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions