support complex debug info
This commit is contained in:
@@ -11,24 +11,24 @@ type E struct {
|
||||
i int
|
||||
}
|
||||
type StructWithAllTypeFields struct {
|
||||
i8 int8
|
||||
i16 int16
|
||||
i32 int32
|
||||
i64 int64
|
||||
i int
|
||||
u8 uint8
|
||||
u16 uint16
|
||||
u32 uint32
|
||||
u64 uint64
|
||||
u uint
|
||||
f32 float32
|
||||
f64 float64
|
||||
b bool
|
||||
// c64 complex64
|
||||
// c128 complex128
|
||||
i8 int8
|
||||
i16 int16
|
||||
i32 int32
|
||||
i64 int64
|
||||
i int
|
||||
u8 uint8
|
||||
u16 uint16
|
||||
u32 uint32
|
||||
u64 uint64
|
||||
u uint
|
||||
f32 float32
|
||||
f64 float64
|
||||
b bool
|
||||
c64 complex64
|
||||
c128 complex128
|
||||
// slice []int
|
||||
// arr [3]int
|
||||
// s string
|
||||
// s string
|
||||
e E
|
||||
// pf *StructWithAllTypeFields // resursive
|
||||
// pi *int
|
||||
@@ -68,8 +68,8 @@ func FuncWithAllTypeParams(
|
||||
f32 float32,
|
||||
f64 float64,
|
||||
b bool,
|
||||
// c64 complex64,
|
||||
// c128 complex128,
|
||||
c64 complex64,
|
||||
c128 complex128,
|
||||
// slice []int,
|
||||
// arr [3]int,
|
||||
// s string,
|
||||
@@ -86,7 +86,8 @@ func FuncWithAllTypeParams(
|
||||
println(
|
||||
i8, i16, i32, i64, i, u8, u16, u32, u64, u,
|
||||
f32, f64, b,
|
||||
// c64, c128, slice, arr[0:],
|
||||
c64, c128,
|
||||
// slice, arr[0:],
|
||||
// s, &e, &f, pf, pi, intr, m, c, err,
|
||||
// fn,
|
||||
)
|
||||
@@ -96,21 +97,21 @@ func FuncWithAllTypeParams(
|
||||
func main() {
|
||||
i := 100
|
||||
s := StructWithAllTypeFields{
|
||||
i8: 1,
|
||||
i16: 2,
|
||||
i32: 3,
|
||||
i64: 4,
|
||||
i: 5,
|
||||
u8: 6,
|
||||
u16: 7,
|
||||
u32: 8,
|
||||
u64: 9,
|
||||
u: 10,
|
||||
f32: 11,
|
||||
f64: 12,
|
||||
b: true,
|
||||
// c64: 13 + 14i,
|
||||
// c128: 15 + 16i,
|
||||
i8: 1,
|
||||
i16: 2,
|
||||
i32: 3,
|
||||
i64: 4,
|
||||
i: 5,
|
||||
u8: 6,
|
||||
u16: 7,
|
||||
u32: 8,
|
||||
u64: 9,
|
||||
u: 10,
|
||||
f32: 11,
|
||||
f64: 12,
|
||||
b: true,
|
||||
c64: 13 + 14i,
|
||||
c128: 15 + 16i,
|
||||
// slice: []int{21, 22, 23},
|
||||
// arr: [3]int{24, 25, 26},
|
||||
// s: "hello",
|
||||
@@ -132,7 +133,8 @@ func main() {
|
||||
i, err := FuncWithAllTypeParams(
|
||||
s.i8, s.i16, s.i32, s.i64, s.i, s.u8, s.u16, s.u32, s.u64, s.u,
|
||||
s.f32, s.f64, s.b,
|
||||
// s.c64, s.c128, s.slice, s.arr, s.s,
|
||||
s.c64, s.c128,
|
||||
// s.slice, s.arr, s.s,
|
||||
s.e, s,
|
||||
// s.pf, s.pi,
|
||||
// s.intr, s.m, s.c, s.err,
|
||||
|
||||
Reference in New Issue
Block a user