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

Function ExampleCanUpdate

example_test.go:91–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91func ExampleCanUpdate() {
92 fmt.Println(defaults.CanUpdate(0), defaults.CanUpdate(123))
93 fmt.Println(defaults.CanUpdate(""), defaults.CanUpdate("hello"))
94 // Output:
95 // true false
96 // true false
97}

Callers

nothing calls this directly

Calls 1

CanUpdateFunction · 0.92

Tested by

no test coverage detected