Skip to content

Commit

Permalink
use bytes.Buffer, should work with older go versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sriv committed Sep 23, 2020
1 parent 6055178 commit 3c8ae35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package properties
// BUG(frank): Write() does not allow to configure the newline character. Therefore, on Windows LF is used.

import (
"bytes"
"fmt"
"io"
"log"
Expand Down Expand Up @@ -766,7 +767,7 @@ func expand(s string, keys []string, prefix, postfix string, values map[string]s

for _, k := range keys {
if key == k {
var b strings.Builder
var b bytes.Buffer
b.WriteString("circular reference in:\n")
for _, k1 := range keys {
fmt.Fprintf(&b, "%s=%s\n", k1, values[k1])
Expand Down

0 comments on commit 3c8ae35

Please sign in to comment.