magus v0.4.3 is out. See what's new
¶ View generated markdown

fmt

String formatting (printf-style).

Naming convention: import the module under its bare name (import "fmt"), reach members with a backslash, and call methods in camelCase: fmt\someMethod.

Methods

sprintf

Format string args into the template using Go printf verbs (e.g. %s, %q). Returns the formatted string.

Signature: fmt\sprintf(format, args...) -> string - source

Parameter Type Optional Description
format string
args string

Returns: string

generatedreference/buzz/fmtmodulestdlibmagusfile
Last updated (29d8b3de)
Earlier changes on this page (6)

Full history ↗ · Blame source ↗

Glossary

Magusfile

The magusfile.buzz that declares a project's targets (as export funs) and binds its spells. Magusfile in full.

Op

A single tool-native command a target composes (long form: operation); the middle of the work hierarchy (Spell to Op to Target). Op in full.

Module

A magus stdlib namespace a magusfile imports for host capabilities: filesystem, exec, vcs, and more. Module in full.

Buzz

The language magusfiles are written in (the .buzz engine). Buzz in full.

Conventions

This page uses none of the site's convention markers. The full set is on the conventions page.