Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cweill/gotests
/ fieldName
Function
fieldName
internal/render/helpers.go:11–19 ·
view source on GitHub ↗
(f *models.Field)
Source
from the content-addressed store, hash-verified
9
)
10
11
func
fieldName(f *models.Field) string {
12
var
n string
13
if
f.IsNamed() {
14
n = f.Name
15
}
else
{
16
n = f.Type.String()
17
}
18
return
n
19
}
20
21
func
receiverName(f *models.Receiver) string {
22
var
n string
Callers
1
Test_fieldName
Function · 0.85
Calls
2
IsNamed
Method · 0.80
String
Method · 0.45
Tested by
1
Test_fieldName
Function · 0.68