normative

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package normative derives the name-based UUIDs (RFC 4122 v5) KerML fixes for the named elements of the standard library, as the SysML v2 pilot does:

package    = uuid5(NAMESPACE_URL, prefix + escaped(package name))
descendant = uuid5(package, escaped qualified name)
membership = uuid5(package, escaped qualified name + "/owningMembership")

Index

Constants

View Source
const Separator = "::"

Separator joins the segments of a qualified name.

Variables

View Source
var NamespaceURL = mustParse("6ba7b811-9dad-11d1-80b4-00c04fd430c8")

NamespaceURL is the RFC 4122 name space for URLs, the root of every library id.

Functions

func ElementID

func ElementID(lang Language, qualifiedName string) string

ElementID is the normative id of the library element with the given qualified name (segments as declared, the first its library package); "" for none.

func EscapeName

func EscapeName(name string) string

EscapeName spells a name as the pilot's qualified names do: an ASCII identifier or `$` as is, anything else single-quoted with control and quote characters escaped.

func OwningMembershipID

func OwningMembershipID(lang Language, qualifiedName string) string

OwningMembershipID is the normative id of the OwningMembership owning the library element with the given qualified name, a library package included.

Types

type Language

type Language uint8

Language is the half of the standard library an element belongs to, which picks the prefix its library package's id is minted under.

const (
	// KerML is the Kernel libraries: Kernel Semantic, Data Type and Function.
	KerML Language = iota + 1
	// SysML is the Systems and Domain libraries.
	SysML
)

func (Language) Prefix

func (l Language) Prefix() string

Prefix is the specification URL the language's library package ids hash under.

func (Language) String

func (l Language) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL