package
0.6.3
Repository: https://github.com/kretech/xgo.git
Documentation: pkg.go.dev

# README

XGo/p

Tricking implements for php runtime functions

[TOC]

所有函数列表 => GoWalker

Sample

Dumper

aInt := 1
bStr := `sf`
cMap := map[string]interface{}{"name": "z", "age": 14}
dArray := []interface{}{&cMap, aInt, bStr}
c := cMap

p.Dump(aInt, &aInt, &bStr, bStr, cMap, dArray, c, cMap["name"], dArray[2], dArray[aInt])

已知问题

  • compact 目前只支持一行调一次
    • 目前定位调用代码是通过行号和函数名,所以只支持一行一个

todo

  • 获取函数签名
  • ClassLoader
  • Functional http API
  • JSON-RPC

# Functions

Compact 将多个变量打包到一个字典里 a,b:=1,2 Comapct(a, b) => {"a":1,"b":2} 参考自 http://php.net/manual/zh/function.compact.php.
DD means Dump and Die.
go:linkname DepthCompact github.com/Kretech/xgo/dump.DepthCompact.
No description provided by the author
Deprecated use dump.Dump.
G 获取当前协程内的全局变量 参考自 http://php.net/manual/zh/reserved.variables.globals.php.
GoID 获取当前 Goroutine 的 ID.
简单类型.
VarName 用来获取变量的名字 VarName(a, b) => []string{"a", "b"}.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
.