api

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: LGPL-2.1 Imports: 2 Imported by: 0

Documentation

Overview

Package api provides helper functions for all Minetest related API calls.

Index

Constants

View Source
const (
	// Debug log level
	Debug logLevel = 0
	// Info log level
	Info logLevel = 1
	// Warning log level
	Warning logLevel = 5
	// NoLogs disable logs completely
	NoLogs logLevel = 9
)

Variables

View Source
var (
	// LogLevel controls the global logging for the API calls.
	LogLevel logLevel = Warning
)

Functions

func Debugf

func Debugf(m string, args ...interface{})

Debugf logs the provided message if debug level is enabled

func Infof

func Infof(m string, args ...interface{})

Infof logs the provided message if debug level is enabled

func Warningf

func Warningf(m string, args ...interface{})

Warningf logs the provided message if debug level is enabled

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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