Run:
go build main.go
nm main | grep Example
Observe: InlinedOrProbablySkippedExample and InlinedExample are inlined and not shown by nm, NotInlinedExample is not inlined, because Cgo is involved.
Run:
go build main.go
nm main | grep Example
Observe: InlinedOrProbablySkippedExample and InlinedExample are inlined and not shown by nm, NotInlinedExample is not inlined, because Cgo is involved.