runtime

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 7 Imported by: 0

README

runtime

runtime is a Starlark module provides Go and app runtime information.

Functions

uptime()

Returns the uptime of the current process in time.duration.

Examples

basic

Returns the uptime of the current process immediately.

load("runtime", "uptime")
print(uptime())
# Output: 883.583µs

Documentation

Overview

Package runtime implements the Starlark module for Go and app runtime information.

Index

Constants

View Source
const ModuleName = "runtime"

ModuleName defines the expected name for this Module when used in starlark's load() function, eg: load('base64', 'encode')

Variables

This section is empty.

Functions

func LoadModule

func LoadModule() (md starlark.StringDict, err error)

LoadModule loads the runtime module. It is concurrency-safe and idempotent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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