MCPcopy Index your code
hub / github.com/tailscale/tailscale / AsStruct

Method AsStruct

types/views/views.go:123–123  ·  view source on GitHub ↗

AsStruct returns a deep-copy of the underlying value. It returns nil, if Valid() is false.

()

Source from the content-addressed store, hash-verified

121 // AsStruct returns a deep-copy of the underlying value.
122 // It returns nil, if Valid() is false.
123 AsStruct() T
124}
125
126// Cloner is any type that has a Clone function returning a deep-clone of the receiver.

Callers 15

TestFunnelCloseFunction · 0.65
TestListenServiceCloseFunction · 0.65
cleanServeConfigMethod · 0.65
ListenServiceMethod · 0.65
doLoginMethod · 0.65
sendMapRequestMethod · 0.65
TestSliceViewRangeFunction · 0.65
TestItemViewFunction · 0.65
TestListViewFunction · 0.65
TestStructListViewFunction · 0.65

Implementers 15

ResolverViewtypes/dnstype/dnstype_view.go
testStructViewtypes/views/views_test.go
TestPrefsViewtypes/prefs/prefs_view_test.go
TestBundleViewtypes/prefs/prefs_view_test.go
TestValueStructViewtypes/prefs/prefs_view_test.go
TestPrefsGroupViewtypes/prefs/prefs_view_test.go
PrefsViewtypes/prefs/prefs_example/prefs_exampl
AutoUpdatePrefsViewtypes/prefs/prefs_example/prefs_exampl
AppConnectorPrefsViewtypes/prefs/prefs_example/prefs_exampl
PersistViewtypes/persist/persist_view.go
NodeViewtailcfg/tailcfg_view.go
HostinfoViewtailcfg/tailcfg_view.go

Calls

no outgoing calls

Tested by 15

TestFunnelCloseFunction · 0.52
TestListenServiceCloseFunction · 0.52
TestSliceViewRangeFunction · 0.52
TestItemViewFunction · 0.52
TestListViewFunction · 0.52
TestStructListViewFunction · 0.52
TestStructMapViewFunction · 0.52
TestDiscokeyChangeFunction · 0.52
TestC2NDebugNetmapFunction · 0.52
TestServeConfigETagFunction · 0.52
TestOnHomeDERPUpdateFunction · 0.52