MCPcopy Index your code
hub / github.com/coder/coder / create

Function create

coderd/runtimeconfig/util.go:7–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5)
6
7func create[T any]() T {
8 var zero T
9 //nolint:forcetypeassert
10 return reflect.New(reflect.TypeOf(zero).Elem()).Interface().(T)
11}

Callers 4

TestListChatsFunction · 0.85
generateAppsFunction · 0.85
generateAppsFunction · 0.85
TestCliTemplateCreateFunction · 0.85

Calls 1

NewMethod · 0.65

Tested by 4

TestListChatsFunction · 0.68
generateAppsFunction · 0.68
generateAppsFunction · 0.68
TestCliTemplateCreateFunction · 0.68