Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 4.7% dependent repos on proxy.golang.org

proxy.golang.org : zombiezen.com/go/ini

Package ini provides a parser and serializer for the INI file format. This package is specifically designed for read-modify-write scenarios: it preserves comments and edits existing values in-place. This package can also parse .env files, since they are a subset of this package's accepted syntax. An INI file is Unicode text encoded in UTF-8. The text is not canonicalized. An INI file consists of zero or more properties. A property is a key and value written on a single line, separated by an equals sign ('='): Keys are not allowed to contain semicolons (';'), contain equals signs ('='), or start with a square bracket ('[' or ']'). Values may be surrounded by double quotes ('"') to express values that begin or end with whitespace or to use C-style escape sequences. Supported escape sequences: Properties may be grouped into sections. A section is started by writing its name in square brackets ('[' and ']') on its own line and ends at the next section name or the end of file: Properties encountered before a section name are permitted. They are considered part of the global section, identified by the empty string (""). Whitespace (characters with the Unicode White Space property) at the beginning or end of lines, around section names, around property keys, and around property values are ignored. If the first non-whitespace character in a line is a semicolon (';') or a hash ('#'), then the line is treated as a comment. Inline comments are not supported. Multiple properties in the same section may have the same key. When retrieving the property in a single-value context (like using *File.Get), only the last value will be used. Multiple sections may have the same name. These are treated as if their properties were presented contiguously in the same section.

Registry - Source - Documentation - JSON
purl: pkg:golang/zombiezen.com/go/ini
Keywords: go, golang, golang-library, ini-parser
License: BSD-3-Clause
Latest release: over 1 year ago
First release: over 1 year ago
Namespace: zombiezen.com/go
Dependent repositories: 1
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/zombiezen
Last synced: 15 days ago

    Loading...
    Readme
    Loading...