Skip to main content

Sylk Package

Package icon Package

In Sylk, a package is a way to group related message and enum definitions together. This can be useful when you have a large set of message definitions, as it allows you to organize them in a way that makes sense for your application. By organizing your message definitions into packages, you can make your code more modular and easier to maintain.

In Sylk CLI, you can define custom package resource types using the

sylk generate package foo.bar.v1

#  foo . bar . v1 
# | | |
# | | └─ The version of the package.
# | └─ The namespace of the package (logical grouping).
# └─ Root namespace.

sylk generate package foo.bar

#  foo . bar
# | |
# | └─ The namespace of the package (logical grouping).
# └─ Root namespace.
πŸ‘€ Info

sylk generate command options are listed in the CLI Commands section