conf
Описание
[зеркало] Go библиотека для чтения конфигурационных файлов в формате Conf. Upstream: https://git.neonxp.ru/conf
Языки
- Go100%
месяц назад
месяц назад
2 месяца назад
месяц назад
месяц назад
месяц назад
месяц назад
месяц назад
месяц назад
месяц назад
месяц назад
README.md
conf
Go библиотека для парсинга конфигурационных файлов похожем на
классические UNIX конфиги, как у nginx или bind9..conf
Установка
Особенности формата
- Директивы: directive arg1 arg2;
- Директивы с телом: directive arg1 arg2 { ... }
- Типы аргументов: строки (двойные/одинарные кавычки/backticks для многострочных строк), числа (целые/дробные), булевы значения
- Вложенные блоки: произвольная глубина вложенности
- Комментарии:
до конца строки# - UTF-8: включая кириллицу
Быстрый старт
Пример конфигурационного файла
Требования
- Go 1.23+ (для использования
)iter.Seq
Лицензия
Этот проект лицензирован в соответствии с GNU General Public License версии 3 (GPLv3). Подробности смотрите в файле LICENSE.
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2026 Alexander NeonXP Kiryukhin <i@neonxp.ru>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Автор
- Александр Кирюхин i@neonxp.ru
conf (English)
Go library for parsing configuration files (like many classic UNIX programms like nginx or bind9)..conf
Installation
Format Features
- Directives: directive arg1 arg2;
- Directives with body: directive arg1 arg2 { ... }
- Argument types: strings (double/single quotes, backticks for multiline strings), numbers (integer/float), boolean values
- Nested blocks: arbitrary nesting depth
- Comments:
until end of line# - UTF-8: including Cyrillic
Quick Start
Example Configuration File
Requirements
- Go 1.23+ (for
)iter.Seq
License
This project is licensed under GNU General Public License version 3 (GPLv3). See LICENSE file for details.
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2026 Alexander NeonXP Kiryukhin <i@neonxp.ru>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Author
- Alexander Kiryukhin i@neonxp.ru