instance

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: BSD-2-Clause 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 instance gives frames and processors their identity: an id unique in the process, and a number counting the instances of their type, which their default name carries ("TextFrame#0", "FrameLogger#2").

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(typeName string) uint64

Count returns how many objects of the named type were counted before this one: 0 for the first, then 1, and so on, for each type on its own.

func ID

func ID() uint64

ID returns an id no other object of the process has. Ids start at 1, so the zero value means none was assigned.

func Name

func Name(typeName string, count uint64) string

Name is the default name of the object of the named type counted as count: "<typeName>#<count>".

Types

This section is empty.

Jump to

Keyboard shortcuts

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