Skip to content

Commit 23abf50

Browse files
committed
Adding notoml directive to encoder
1 parent 64ec1f4 commit 23abf50

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

pkg/yqlib/encoder_toml.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build !yq_notoml
2+
13
package yqlib
24

35
import (

pkg/yqlib/no_toml.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@ package yqlib
55
func NewTomlDecoder() Decoder {
66
return nil
77
}
8+
9+
func NewTomlEncoder() Encoder {
10+
return nil
11+
}
12+
13+
func NewTomlEncoderWithPrefs(prefs TomlPreferences) Encoder {
14+
return nil
15+
}

0 commit comments

Comments
 (0)