MCPcopy Create free account
hub / github.com/atomicgo/cursor / SetTarget

Function SetTarget

utils.go:23–25  ·  view source on GitHub ↗

SetTarget sets to output target of the default curser to the provided cursor.Writer (wrapping io.Writer).

(w Writer)

Source from the content-addressed store, hash-verified

21// SetTarget sets to output target of the default curser to the
22// provided cursor.Writer (wrapping io.Writer).
23func SetTarget(w Writer) {
24 cursor = cursor.WithWriter(w)
25}
26
27// Up moves the cursor n lines up relative to the current position.
28func Up(n int) {

Callers 1

TestCustomIOWriterFunction · 0.85

Calls 1

WithWriterMethod · 0.45

Tested by 1

TestCustomIOWriterFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…