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

toml

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package toml implements a dependency-free parser for the subset of TOML v1.0 used by scanner configuration files (including gitleaks-style configs): tables, arrays of tables, dotted and quoted keys, all four string forms, integers, floats, booleans, nested/multi-line arrays and inline tables. Date/time values are returned as their literal string.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(data []byte) (map[string]any, error)

Parse decodes TOML into a tree of map[string]any, []any, string, int64, float64 and bool values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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