mirror of
https://github.com/go-i2p/go-sam-go.git
synced 2025-07-21 11:53:13 -04:00
16 lines
336 B
Go
16 lines
336 B
Go
![]() |
package sam3
|
||
|
|
||
|
// Options represents a map of configuration options
|
||
|
type Options map[string]string
|
||
|
|
||
|
// AsList returns options as a list of strings
|
||
|
func (opts Options) AsList() (ls []string) {
|
||
|
for k, v := range opts {
|
||
|
ls = append(ls, k+"="+v)
|
||
|
}
|
||
|
return
|
||
|
}
|
||
|
|
||
|
// Option is a functional option for SAMEmit
|
||
|
type Option func(*SAMEmit) error
|