all repos

viye @ 12fd7c3832043f0334e68395a52617792c1f0195

my shot at reimplementing xiki
1 files changed, 1 insertions(+), 1 deletions(-)
config: support comments
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-09-07 17:18:11 +0300
Authored at: 2026-09-07 17:16:45 +0300
Change ID: qrvqzspzyxvsvqmpxuryrrzqpnstvqyv
Parent: 91ebee3
M internal/config/config.go
ยทยทยท
        80
        80
         

      
        81
        81
         func (c *Config) read(inp []byte) error {

      
        82
        82
         	for line := range strings.SplitSeq(string(inp), "\n") {

      
        83
        
        -		if line == "" {

      
        
        83
        +		if line == "" || strings.HasPrefix(line, "#") {

      
        84
        84
         			continue

      
        85
        85
         		}

      
        86
        86
         		parts := strings.Split(line, " = ")