FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
model/expr/filtered_views.go at main · goadesign/model · GitHub
goadesign
/
model
Public
Notifications
You must be signed in to change notification settings
Fork
23
Star
467
Code
Issues
13
Pull requests
15
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
model
/
expr
/
filtered_views.go
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (23 loc) · 560 Bytes
Breadcrumbs
model
/
expr
/
filtered_views.go
Copy path
File metadata and controls
26 lines (23 loc) · 560 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package
expr
import
(
"fmt"
)
type
(
// FilteredView describes a filtered view on top of a specified view.
FilteredView
struct
{
Title
string
Description
string
Key
string
`json:"key"`
BaseKey
string
Exclude
bool
FilterTags
[]
string
}
)
// EvalName returns the generic expression name used in error messages.
func
(
fv
*
FilteredView
)
EvalName
()
string
{
var
suffix
string
if
fv
.
Key
!=
""
{
suffix
=
fmt
.
Sprintf
(
" key %q and"
,
fv
.
Key
)
}
return
fmt
.
Sprintf
(
"filtered view with%s base key %q"
,
suffix
,
fv
.
BaseKey
)
}
Back
|
FazBrowse Home
|
New Git URL