mirror of
https://github.com/foxcpp/maddy.git
synced 2026-02-10 01:32:34 +02:00
15 lines
303 B
Go
15 lines
303 B
Go
package module
|
|
|
|
// Tabele is the interface implemented by module that implementation string-to-string
|
|
// translation.
|
|
type Table interface {
|
|
Lookup(s string) (string, bool, error)
|
|
}
|
|
|
|
type MutableTable interface {
|
|
Table
|
|
Keys() ([]string, error)
|
|
RemoveKey(k string) error
|
|
SetKey(k, v string) error
|
|
}
|