Skip to content

Commit

Permalink
refactor(ue): add default value to extern filtern
Browse files Browse the repository at this point in the history
  • Loading branch information
w4bremer committed Aug 12, 2024
1 parent 36e3e01 commit 02d15a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/gen/filters/filterue/ue_extern.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type UeExtern struct {
NameSpace string
Include string
Name string
Default string
Library string
Plugin string
}
Expand All @@ -22,6 +23,7 @@ func ueExtern(xe *model.Extern) UeExtern {
inc := xe.Meta.GetString("ue.include")
lib := xe.Meta.GetString("ue.module")
name := xe.Meta.GetString("ue.type")
dft := xe.Meta.GetString("ue.default")
plugin := xe.Meta.GetString("ue.plugin")
if name == "" {
name = xe.Name
Expand All @@ -30,6 +32,7 @@ func ueExtern(xe *model.Extern) UeExtern {
NameSpace: ns,
Include: inc,
Name: name,
Default: dft,
Library: lib,
Plugin: plugin,
}
Expand Down

0 comments on commit 02d15a4

Please sign in to comment.