Skip to content

Commit

Permalink
feat(sublime): Updating snippet to use Service instead of app
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Aug 25, 2023
1 parent 0b29760 commit cba4ec0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sublime/text/snippets/golang-app-pattern.sublime-snippet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
type App struct {
type Service struct {
${1:FlagName} string
}
Expand All @@ -14,8 +14,8 @@ func Flags(fs *flag.FlagSet, prefix string, overrides ...flags.Override) Config
}
}
func New(config Config) App {
return App{
func New(config Config) Service {
return Service{
${1:FlagName}: strings.TrimSpace(*config.${1:FlagName}),
}
}
Expand Down

0 comments on commit cba4ec0

Please sign in to comment.