MCPcopy Index your code
hub / github.com/duke-git/lancet / ExampleOf

Function ExampleOf

pointer/pointer_examples_test.go:5–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import "fmt"
4
5func ExampleOf() {
6 result1 := Of(123)
7 result2 := Of("abc")
8
9 fmt.Println(*result1)
10 fmt.Println(*result2)
11
12 // Output:
13 // 123
14 // abc
15}
16
17func ExampleUnwrap() {
18 a := 123

Callers

nothing calls this directly

Calls 1

OfFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…