Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/d4l3k/go-pry
/ functions
Functions
211 in github.com/d4l3k/go-pry
⨍
Functions
211
◇
Types & classes
21
↓ 86 callers
Method
Error
()
pry/helpers.go:16
↓ 73 callers
Method
InterpretString
InterpretString interprets a string of go code and returns the result.
pry/interpreter.go:191
↓ 73 callers
Function
NewScope
NewScope creates a new initialized scope
pry/interpreter.go:69
↓ 37 callers
Method
Set
Set walks the scope and sets a value in a parent scope if it exists, else current.
pry/interpreter.go:104
↓ 16 callers
Method
Len
Len returns amount of records in history
pry/io_default.go:69
↓ 13 callers
Method
NewChild
NewChild creates a scope under the existing scope.
pry/interpreter.go:149
↓ 12 callers
Method
Close
()
pry/pry.go:36
↓ 11 callers
Function
Pry
Pry does nothing. It only exists so running code without go-pry doesn't throw an error.
pry/pry.go:17
↓ 11 callers
Method
String
String returns the contents of the unread portion of the buffer as a string. If the Buffer is a nil pointer, it returns "<nil>".
pry/safebuffer/safebuffer.go:27
↓ 10 callers
Method
Get
(string)
pry/suggestions.go:49
↓ 9 callers
Method
Write
(buf []byte)
pry/tty_js.go:44
↓ 8 callers
Method
Get
Get walks the scope and finds the value of interest
pry/interpreter.go:91
↓ 8 callers
Function
highlightWords
(s string, words []string, color, edges string)
pry/highlighter.go:58
↓ 7 callers
Method
handleStatement
(vars []string, s ast.Stmt)
generate/generate.go:341
↓ 6 callers
Method
Debug
Debug prints debug statements if debug is true.
generate/generate.go:38
↓ 5 callers
Method
ExecuteGoCmd
ExecuteGoCmd runs the 'go' command with certain parameters.
generate/generate.go:45
↓ 5 callers
Method
Interpret
Interpret interprets an ast.Node and returns the value.
pry/interpreter.go:210
↓ 5 callers
Method
Load
Load unmarshal history file into history's records
pry/io_default.go:41
↓ 5 callers
Method
handleExpr
(vars []string, v ast.Expr)
generate/generate.go:405
↓ 4 callers
Function
Highlight
Highlight highlights a string of go code for outputting to bash.
pry/highlighter.go:17
↓ 4 callers
Method
InjectPry
InjectPry walks the scope and replaces pry.Pry with pry.Apply(pry.Scope{...}).
generate/generate.go:60
↓ 4 callers
Function
NewGenerator
(debug bool)
generate/generate.go:28
↓ 4 callers
Function
Type
Type returns the reflect type of the passed object.
pry/type.go:6
↓ 4 callers
Function
fileExists
(filePath string)
generate/generate_test.go:44
↓ 3 callers
Method
Add
Add appends record into history's records
pry/io_default.go:72
↓ 3 callers
Method
GenerateFile
GenerateFile generates a injected file.
generate/generate.go:256
↓ 3 callers
Method
GetPointer
GetPointer walks the scope and finds the pointer to the value of interest
pry/interpreter.go:79
↓ 3 callers
Method
Output
()
pry/pry_test.go:166
↓ 3 callers
Method
Render
Render renders an ast node
pry/interpreter.go:1253
↓ 3 callers
Method
RevertPry
RevertPry reverts the changes made by InjectPry.
generate/generate.go:298
↓ 3 callers
Method
extractFields
(vars []string, l []*ast.Field)
generate/generate.go:334
↓ 3 callers
Function
succeedsSoon
(t testing.TB, f func() error)
pry/pry_test.go:177
↓ 3 callers
Function
testPryApply
(t testing.TB)
pry/pry_test.go:111
↓ 2 callers
Function
ComputeBinaryOp
ComputeBinaryOp executes the corresponding binary operation (+, -, etc) on two interfaces.
pry/pseudo_generics.go:51
↓ 2 callers
Method
Save
Save saves marshaled history's records into file
pry/io_default.go:56
↓ 2 callers
Method
TypeCheck
TypeCheck does type checking and returns the info object
pry/interpreter.go:1262
↓ 2 callers
Function
apply
( scope *Scope, out io.Writer, tty genericTTY, filePath, filePathRaw string, lineNum int, )
pry/pry.go:39
↓ 2 callers
Method
extractVariables
(vars []string, l []ast.Stmt)
generate/generate.go:327
↓ 2 callers
Function
generateBundle
(w http.ResponseWriter, r *http.Request, packages string)
playground/server/server.go:49
↓ 2 callers
Method
getValue
(id ast.Expr)
pry/interpreter.go:1043
↓ 2 callers
Method
handleIdents
(vars []string, idents []*ast.Ident)
generate/generate.go:398
↓ 2 callers
Function
interfaceToInt
(i interface{})
pry/interpreter_test.go:581
↓ 2 callers
Function
normalizePackages
(packages string)
playground/server/server.go:36
↓ 1 callers
Method
CheckStatement
CheckStatement checks if a statement is type safe
pry/interpreter.go:1203
↓ 1 callers
Method
ComputeUnaryOp
ComputeUnaryOp computes the corresponding unary (+x, -x) operation on an interface.
pry/pseudo_generics.go:734
↓ 1 callers
Method
ConfigureTypes
ConfigureTypes configures the scope type checker
pry/interpreter.go:1163
↓ 1 callers
Function
DeAssign
DeAssign takes a *_ASSIGN token and returns the corresponding * token.
pry/pseudo_generics.go:21
↓ 1 callers
Method
Defer
(d *Defer)
pry/interpreter.go:58
↓ 1 callers
Method
ExecuteFunc
(funExpr ast.Expr, args []interface{})
pry/interpreter.go:1093
↓ 1 callers
Method
GenerateAndExecuteFile
GenerateAndExecuteFile generates and executes a temp file with the given imports
generate/generate.go:275
↓ 1 callers
Method
GetExports
GetExports returns a string of gocode that represents the exports (constants/functions) of an ast.Package.
generate/generate.go:173
↓ 1 callers
Method
ImportFrom
(path, dir string, mode types.ImportMode)
pry/importer_default.go:20
↓ 1 callers
Method
Keys
()
pry/suggestions.go:45
↓ 1 callers
Function
NewHistory
NewHistory constructs browserHistory instance
pry/io_js.go:43
↓ 1 callers
Method
ParseString
ParseString parses go code into the ast nodes.
pry/interpreter.go:161
↓ 1 callers
Method
ReadRune
()
pry/pry.go:34
↓ 1 callers
Method
Size
()
pry/pry.go:35
↓ 1 callers
Function
StringToType
StringToType returns the reflect.Type corresponding to the type string provided. Ex: StringToType("int")
pry/interpreter.go:1283
↓ 1 callers
Method
SuggestionsGoCode
SuggestionsGoCode is a suggestion engine that uses gocode for autocomplete.
pry/autocomplete.go:18
↓ 1 callers
Method
SuggestionsPry
(line string, index int)
pry/suggestions.go:12
↓ 1 callers
Function
ValuesToInterfaces
ValuesToInterfaces converts a slice of []reflect.Value to []interface{}
pry/interpreter.go:1314
↓ 1 callers
Function
X
Note: This file has some gibberish to test for highlighting and other edge cases. * Block Quote */
example/file/file.go:15
↓ 1 callers
Function
a
(b int)
example/func-args/func-args.go:5
↓ 1 callers
Function
displayFilePosition
( out io.Writer, filePathRaw, filePath string, lineNum int, )
pry/pry.go:178
↓ 1 callers
Function
displaySuggestions
displaySuggestions renders the live autocomplete from GoCode.
pry/pry.go:214
↓ 1 callers
Function
filterVars
(vars []string)
generate/generate.go:318
↓ 1 callers
Function
get
(v interface{}, key string)
pry/suggestions.go:52
↓ 1 callers
Function
getImporter
()
pry/importer_js.go:21
↓ 1 callers
Method
handleBlockStmt
(vars []string, stmt *ast.BlockStmt)
generate/generate.go:393
↓ 1 callers
Method
handleForStmt
(vars []string, stmt *ast.ForStmt)
generate/generate.go:387
↓ 1 callers
Method
handleIfStmt
(vars []string, stmt *ast.IfStmt)
generate/generate.go:374
↓ 1 callers
Method
handleRangeStmt
(vars []string, stmt *ast.RangeStmt)
generate/generate.go:380
↓ 1 callers
Function
keys
(v interface{})
pry/suggestions.go:79
↓ 1 callers
Function
makeTestTTY
()
pry/pry_test.go:84
↓ 1 callers
Function
newWASMTTY
()
pry/tty_js.go:13
↓ 1 callers
Function
openTTY
()
pry/tty_js.go:35
↓ 1 callers
Method
parseDir
()
pry/importer_js.go:11
↓ 1 callers
Function
pkgHash
(pkgs []string)
playground/server/server.go:31
↓ 1 callers
Function
prying
()
example/goroutines/goroutines.go:9
↓ 1 callers
Function
readFile
(path string)
pry/io_js.go:13
↓ 1 callers
Function
run
()
main.go:33
↓ 1 callers
Function
run
()
pry-build-corpus/main.go:26
↓ 1 callers
Function
run
()
playground/genmeta/genmeta.go:22
↓ 1 callers
Function
run
()
playground/server/server.go:98
Method
Add
Add appends record into history's records
pry/io_js.go:81
Function
Append
Append is a runtime replacement for the append function
pry/helpers.go:24
Function
Apply
Apply drops into a pry shell in the location required.
pry/pry.go:21
Method
B
()
pry/interpreter_test.go:350
Function
Close
Close is a runtime replacement for the "close" function.
pry/helpers.go:89
Method
Close
()
pry/tty_js.go:61
Method
Close
()
pry/pry_test.go:99
Method
Close
()
pry/pry_test.go:170
Function
Fuzz
Fuzz is used for go-fuzz testing.
pry/fuzz.go:6
Method
Get
(key string)
pry/package.go:17
Method
Import
(path string)
pry/importer_default.go:17
Method
Import
(path string)
pry/importer.go:17
Function
InternalSetImports
(raw string)
pry/importer_js.go:30
Method
Keys
()
pry/package.go:9
Method
Keys
Keys returns all keys in scope
pry/interpreter.go:135
Function
Len
Len is a runtime replacement for the len function
pry/helpers.go:95
next →
1–100 of 211, ranked by callers