mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 00:02:37 +02:00
28 lines
365 B
Go
28 lines
365 B
Go
package converter
|
|
|
|
// Name or Section
|
|
type order interface {
|
|
Value() string
|
|
}
|
|
|
|
// Section
|
|
type orderSection struct {
|
|
value string
|
|
}
|
|
|
|
func (s orderSection) Value() string {
|
|
return s.value
|
|
}
|
|
|
|
// Name
|
|
//
|
|
// isString is used to quote the default value.
|
|
type orderName struct {
|
|
value string
|
|
isString bool
|
|
}
|
|
|
|
func (s orderName) Value() string {
|
|
return s.value
|
|
}
|