Help us shape the future of Go! Take the 2026 Go Developer Survey

libraryuse

package
v1.150.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package libraryuse is who loads a managed-script library (#1941): one script whose current source loads it, and the refusal a delete of a library still in use answers with. It is its own package so the script contract in pkg/script can carry it without growing that package's public surface, as internal/runstate is for the run record.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InUseError

type InUseError struct {
	Users []string
}

InUseError is a refused delete of a library: Users are the scripts whose current source loads it. Its message is what the caller is told.

func (*InUseError) Error

func (e *InUseError) Error() string

type Use

type Use struct {
	ScriptID    string `json:"script_id" example:"3f0c9b1e-8a41-4c55-9d0e-2b7a6c1d4e5f"`
	Name        string `json:"name" example:"weekly-sales"`
	DisplayName string `json:"display_name" example:"Weekly Sales"`
	OwnerEmail  string `json:"owner_email" example:"jane@example.com"`
	Version     int    `json:"version" example:"2"`
}

Use is one script whose current source loads a library, and the version of the library it loads.

Jump to

Keyboard shortcuts

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