mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed? - CHASM: Make Archetype strongly typed ## Why? - Make it easier to tell what value needs to be passed when calling a function expecting an archetype as argument. ## How did you test it? - [x] built - [ ] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s)
13 lines
206 B
Go
13 lines
206 B
Go
package chasm
|
|
|
|
type Archetype string
|
|
|
|
func (a Archetype) String() string {
|
|
return string(a)
|
|
}
|
|
|
|
const (
|
|
// ArchetypeAny is a special value that matches any archetype.
|
|
ArchetypeAny Archetype = "__any__"
|
|
)
|