frantic

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

README

frantic

frantic provides identity utilities and validation for official project/component names in the frantic ecosystem.

Types

Type Description
Identity Represents a two-part project identity (e.g. "frantic-core")

Functions

Function Description
New(name string) (Identity, error) Parses and validates a "prefix-suffix" identity string
(*Identity).String() string Returns the full identity name
(*Identity).Name() string Returns the full identity name
(*Identity).Prefix() string Returns the prefix part
(*Identity).Suffix() string Returns the suffix part
(*Identity).IsOfficial() error Validates against known official origins
ValidateIdentityOrigin(name string) error Checks if a name is a recognized project origin

Example

import "github.com/mt1976/frantic-core/frantic"

func main() {
    id, err := frantic.New("frantic-core")
    if err != nil {
        log.Fatal(err)
    }
    fmt.Println(id.Prefix()) // "frantic"
    fmt.Println(id.Suffix()) // "core"
    fmt.Println(id.IsOfficial()) // nil (valid)
}

Documentation

Overview

Package frantic defines identity utilities and validation for official project/component names within the frantic ecosystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateIdentityOrigin

func ValidateIdentityOrigin(name string) error

Types

type Identity

type Identity struct {
	// contains filtered or unexported fields
}

func New

func New(name string) (Identity, error)

func (*Identity) IsOfficial

func (i *Identity) IsOfficial() error

func (*Identity) Name

func (i *Identity) Name() string

func (*Identity) Prefix

func (i *Identity) Prefix() string

func (*Identity) String

func (i *Identity) String() string

func (*Identity) Suffix

func (i *Identity) Suffix() string

Jump to

Keyboard shortcuts

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