MCPcopy Create free account
hub / github.com/creasty/defaults / ExampleCanUpdate

Function ExampleCanUpdate

example_test.go:142–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140}
141
142func ExampleCanUpdate() {
143 fmt.Println(defaults.CanUpdate(0), defaults.CanUpdate(123))
144 fmt.Println(defaults.CanUpdate(""), defaults.CanUpdate("hello"))
145 // Output:
146 // true false
147 // true false
148}

Callers

nothing calls this directly

Calls 1

CanUpdateFunction · 0.92

Tested by

no test coverage detected