Gojo
Esc
  • Loading…
The standard library
Documentation

Reference

The standard library

Every module of std, generated from its source by gojo doc.

The prelude is available everywhere; other modules are imported with use std/name (use std/{os, json} for several).

module
prelude The prelude: available in every Gojo file without an import.
fmt Formatting and printing.
os Files, directories, the environment and processes.
math Floating-point math and integer limits.
time Time: a monotonic clock for measuring, the wall clock and calendar dates.
task Tasks and cancellation.
net TCP networking.
io Errors from the operating system, files, processes and the network, and the interfaces for streams of bytes.
bufio Buffered reading and writing on top of io.Reader / io.Writer.
json JSON: parse text into a json.Value tree and encode it back.
http HTTP/1.1: a server built on tasks, scopes and cancellation, and a small client.
strings Building strings piece by piece.