Skip to content

Commit

Permalink
style: rm border/parameter.go, move to handler
Browse files Browse the repository at this point in the history
  • Loading branch information
sincerefly committed Jul 3, 2024
1 parent e2c9165 commit da716cd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 101 deletions.
18 changes: 16 additions & 2 deletions service/border/processor.go → service/border/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,26 @@ import (
"strings"
)

type Style string

const (
StyleSimple Style = "simple"
StyleTextBottom Style = "text_bottom"
)

type Parameterizable interface {
Input() string
SetInput(input string)
Output() string
SetOutput(output string)
}

type StyleProcessor struct {
style Style
params Parameter
params Parameterizable
}

func NewStyleProcessor(style Style, params Parameter) *StyleProcessor {
func NewStyleProcessor(style Style, params Parameterizable) *StyleProcessor {
return &StyleProcessor{
style: style,
params: params,
Expand Down
99 changes: 0 additions & 99 deletions service/border/parameter.go

This file was deleted.

0 comments on commit da716cd

Please sign in to comment.