mirror of
https://github.com/Luzifer/mondash.git
synced 2024-11-10 08:30:02 +00:00
Knut Ahlers
f3c31476b4
* Update dependencies * Improve code quality * Apply linter advices * Add gzip compression to all requests * Rework frontend * Apply bootswatch theme * Hide historic details when not requested * Remove debugging header * Apply auto-migration of meta fields * Fix broken "last update" time * Pre-sort metrics for frontend / API * Add tooltip with absolute time * Some design fixes * Add tooltip with absolute date to last ok * Implement filters * Apply eslint --fix * Remove unused var * Remove remains of old template engine * Update baked in assets * Update Dockerfile for new version Signed-off-by: Knut Ahlers <knut@ahlers.me>
29 lines
680 B
Go
29 lines
680 B
Go
// Package ini is an LL(1) parser for configuration files.
|
|
//
|
|
// Example:
|
|
// sections, err := ini.OpenFile("/path/to/file")
|
|
// if err != nil {
|
|
// panic(err)
|
|
// }
|
|
//
|
|
// profile := "foo"
|
|
// section, ok := sections.GetSection(profile)
|
|
// if !ok {
|
|
// fmt.Printf("section %q could not be found", profile)
|
|
// }
|
|
//
|
|
// Below is the BNF that describes this parser
|
|
// Grammar:
|
|
// stmt -> value stmt'
|
|
// stmt' -> epsilon | op stmt
|
|
// value -> number | string | boolean | quoted_string
|
|
//
|
|
// section -> [ section'
|
|
// section' -> value section_close
|
|
// section_close -> ]
|
|
//
|
|
// SkipState will skip (NL WS)+
|
|
//
|
|
// comment -> # comment' | ; comment'
|
|
// comment' -> epsilon | value
|
|
package ini
|