Skip to content

Commit 01575cb

Browse files
committed
wit/bindgen: remove reference to package log/slog
1 parent 611f300 commit 01575cb

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

wit/bindgen/options.go

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package bindgen
22

33
import (
4-
"log/slog"
5-
64
"github.com/bytecodealliance/wasm-tools-go/wit/logging"
75
)
86

@@ -18,8 +16,7 @@ func (f optionFunc) applyOption(opts *options) error {
1816
}
1917

2018
type options struct {
21-
logger logging.Logger
22-
slogger *slog.Logger
19+
logger logging.Logger
2320

2421
// generatedBy is the name of the program that generates code with this package.
2522
generatedBy string
@@ -57,14 +54,6 @@ func Logger(logger logging.Logger) Option {
5754
})
5855
}
5956

60-
// Slogger returns an [Option] that specifies a [slog.Slogger] for logging.
61-
func Slogger(logger *slog.Logger) Option {
62-
return optionFunc(func(opts *options) error {
63-
opts.slogger = logger
64-
return nil
65-
})
66-
}
67-
6857
// GeneratedBy returns an [Option] that specifies the name of the program or package
6958
// that will appear in the "Code generated by ..." header on generated files.
7059
func GeneratedBy(name string) Option {

0 commit comments

Comments
 (0)