2015-08-07 11:23:18 +00:00
|
|
|
package main
|
|
|
|
|
2016-02-18 17:50:29 +00:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"go/constant"
|
2017-01-20 22:22:36 +00:00
|
|
|
"math"
|
2023-03-16 19:12:20 +00:00
|
|
|
"os"
|
2023-03-30 15:54:04 +00:00
|
|
|
"reflect"
|
2016-02-18 17:50:29 +00:00
|
|
|
"runtime"
|
2022-03-25 20:59:57 +00:00
|
|
|
"time"
|
2016-02-18 17:50:29 +00:00
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
2024-09-03 17:36:42 +00:00
|
|
|
type (
|
|
|
|
Byte byte
|
|
|
|
String string
|
|
|
|
Uint32 uint32
|
|
|
|
Int64 int64
|
|
|
|
Bool bool
|
|
|
|
Float64 float64
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
ByteConst Byte = 255
|
|
|
|
StringConst String = "hi"
|
|
|
|
UintConst Uint32 = 42
|
|
|
|
IntConst Int64 = 9001
|
|
|
|
BoolConst Bool = true
|
|
|
|
FloatConst Float64 = 3.14
|
|
|
|
)
|
2021-10-08 06:57:51 +00:00
|
|
|
|
2016-02-18 17:50:29 +00:00
|
|
|
type astruct struct {
|
|
|
|
A int
|
|
|
|
B int
|
|
|
|
}
|
|
|
|
|
2024-12-05 03:14:47 +00:00
|
|
|
type largestruct struct {
|
|
|
|
name string
|
|
|
|
v [256]byte
|
|
|
|
}
|
|
|
|
|
2022-09-29 17:08:19 +00:00
|
|
|
type astructName1 astruct
|
|
|
|
type astructName2 astruct
|
|
|
|
|
2016-02-18 17:50:29 +00:00
|
|
|
type bstruct struct {
|
|
|
|
a astruct
|
|
|
|
}
|
|
|
|
|
|
|
|
type cstruct struct {
|
|
|
|
pb *bstruct
|
|
|
|
sa []*astruct
|
|
|
|
}
|
2015-08-07 11:23:18 +00:00
|
|
|
|
|
|
|
type a struct {
|
|
|
|
aas []a
|
|
|
|
}
|
|
|
|
|
2016-02-18 17:50:29 +00:00
|
|
|
type A struct {
|
|
|
|
val int
|
|
|
|
}
|
|
|
|
|
|
|
|
type C struct {
|
|
|
|
s string
|
|
|
|
}
|
|
|
|
|
|
|
|
type B struct {
|
|
|
|
A
|
|
|
|
*C
|
|
|
|
a A
|
|
|
|
ptr *A
|
|
|
|
}
|
|
|
|
|
2016-04-24 17:15:39 +00:00
|
|
|
type D struct {
|
|
|
|
u1, u2, u3, u4, u5, u6 uint32
|
|
|
|
}
|
|
|
|
|
2016-02-18 17:50:29 +00:00
|
|
|
func afunc(x int) int {
|
|
|
|
return x + 2
|
|
|
|
}
|
|
|
|
|
|
|
|
func afunc1(x int) {
|
|
|
|
}
|
|
|
|
|
|
|
|
func afunc2() int {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type functype func(int) int
|
|
|
|
|
|
|
|
func (a *astruct) Error() string {
|
|
|
|
return "not an error"
|
|
|
|
}
|
|
|
|
|
2023-07-06 09:16:06 +00:00
|
|
|
func (a astruct) NonPointerReceiverMethod() {
|
2018-07-30 19:02:35 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2016-02-18 17:50:29 +00:00
|
|
|
func (b *bstruct) Error() string {
|
|
|
|
return "not an error"
|
|
|
|
}
|
|
|
|
|
|
|
|
type dstruct struct {
|
|
|
|
x interface{}
|
|
|
|
}
|
|
|
|
|
|
|
|
type maptype map[string]interface{}
|
|
|
|
|
|
|
|
type benchstruct struct {
|
|
|
|
a [64]byte
|
|
|
|
b [64]byte
|
|
|
|
}
|
|
|
|
|
|
|
|
type Item struct {
|
|
|
|
Name string
|
|
|
|
Route string
|
|
|
|
Active int
|
|
|
|
}
|
|
|
|
|
|
|
|
type Menu []Item
|
|
|
|
|
2017-05-30 21:26:10 +00:00
|
|
|
type truncatedMap struct {
|
|
|
|
v []map[string]astruct
|
|
|
|
}
|
|
|
|
|
2019-06-13 00:35:00 +00:00
|
|
|
type Cache struct {
|
|
|
|
blocks [2000]Block
|
|
|
|
}
|
|
|
|
|
|
|
|
type Block struct {
|
|
|
|
cache *Cache
|
|
|
|
}
|
|
|
|
|
2019-07-02 17:55:27 +00:00
|
|
|
type List struct {
|
|
|
|
N int
|
|
|
|
Next *List
|
|
|
|
}
|
|
|
|
|
2021-01-29 17:25:31 +00:00
|
|
|
type T struct {
|
|
|
|
F string
|
|
|
|
}
|
|
|
|
|
|
|
|
type W1 struct {
|
|
|
|
T
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*W1) M() {}
|
|
|
|
|
|
|
|
type I interface{ M() }
|
|
|
|
|
|
|
|
type W2 struct {
|
|
|
|
W1
|
|
|
|
T
|
|
|
|
}
|
|
|
|
|
|
|
|
type W3 struct {
|
|
|
|
I
|
|
|
|
T
|
|
|
|
}
|
|
|
|
|
|
|
|
type W4 struct {
|
|
|
|
I
|
|
|
|
}
|
|
|
|
|
|
|
|
type W5 struct {
|
|
|
|
*W5
|
|
|
|
}
|
|
|
|
|
2023-05-08 17:38:53 +00:00
|
|
|
type ThreeInts struct {
|
|
|
|
a, b, c int
|
|
|
|
}
|
|
|
|
|
2021-01-29 17:25:31 +00:00
|
|
|
var _ I = (*W2)(nil)
|
|
|
|
|
2023-07-07 17:32:05 +00:00
|
|
|
type pptr *pptr
|
|
|
|
|
2015-08-07 11:23:18 +00:00
|
|
|
func main() {
|
2016-02-18 17:50:29 +00:00
|
|
|
i1 := 1
|
|
|
|
i2 := 2
|
|
|
|
f1 := 3.0
|
|
|
|
i3 := 3
|
|
|
|
p1 := &i1
|
2021-02-21 16:00:05 +00:00
|
|
|
pp1 := &p1
|
2016-02-18 17:50:29 +00:00
|
|
|
s1 := []string{"one", "two", "three", "four", "five"}
|
|
|
|
s3 := make([]int, 0, 6)
|
2020-08-11 15:34:27 +00:00
|
|
|
a0 := [0]int{}
|
2016-02-18 17:50:29 +00:00
|
|
|
a1 := [5]string{"one", "two", "three", "four", "five"}
|
|
|
|
c1 := cstruct{&bstruct{astruct{1, 2}}, []*astruct{&astruct{1, 2}, &astruct{2, 3}, &astruct{4, 5}}}
|
|
|
|
s2 := []astruct{{1, 2}, {3, 4}, {5, 6}, {7, 8}, {9, 10}, {11, 12}, {13, 14}, {15, 16}}
|
|
|
|
p2 := &(c1.sa[2].B)
|
|
|
|
as1 := astruct{1, 1}
|
|
|
|
var p3 *int
|
|
|
|
str1 := "01234567890"
|
|
|
|
var fn1 functype = afunc
|
|
|
|
var fn2 functype = nil
|
|
|
|
var nilslice []int = nil
|
|
|
|
var nilptr *int = nil
|
2019-10-26 15:15:33 +00:00
|
|
|
ch1 := make(chan int, 11)
|
2017-10-26 14:14:31 +00:00
|
|
|
ch1 <- 1
|
|
|
|
ch1 <- 4
|
|
|
|
ch1 <- 3
|
|
|
|
ch1 <- 2
|
2016-02-18 17:50:29 +00:00
|
|
|
var chnil chan int = nil
|
|
|
|
m1 := map[string]astruct{
|
|
|
|
"Malone": astruct{2, 3},
|
|
|
|
"Adenauer": astruct{},
|
|
|
|
"squadrons": astruct{},
|
|
|
|
"quintuplets": astruct{},
|
|
|
|
"parasite": astruct{},
|
|
|
|
"wristwatches": astruct{},
|
|
|
|
"flashgun": astruct{},
|
|
|
|
"equivocally": astruct{},
|
|
|
|
"sweetbrier": astruct{},
|
|
|
|
"idealism": astruct{},
|
|
|
|
"tangos": astruct{},
|
|
|
|
"alterable": astruct{},
|
|
|
|
"quaffing": astruct{},
|
|
|
|
"arsenic": astruct{},
|
|
|
|
"coincidentally": astruct{},
|
|
|
|
"hindrances": astruct{},
|
|
|
|
"zoning": astruct{},
|
|
|
|
"egging": astruct{},
|
|
|
|
"inserts": astruct{},
|
|
|
|
"adaptive": astruct{},
|
|
|
|
"orientations": astruct{},
|
|
|
|
"periling": astruct{},
|
|
|
|
"lip": astruct{},
|
|
|
|
"chant": astruct{},
|
|
|
|
"availing": astruct{},
|
|
|
|
"fern": astruct{},
|
|
|
|
"flummoxes": astruct{},
|
|
|
|
"meanders": astruct{},
|
|
|
|
"ravenously": astruct{},
|
|
|
|
"reminisce": astruct{},
|
|
|
|
"snorkel": astruct{},
|
|
|
|
"gutters": astruct{},
|
|
|
|
"jibbed": astruct{},
|
|
|
|
"tiara": astruct{},
|
|
|
|
"takers": astruct{},
|
|
|
|
"animates": astruct{},
|
|
|
|
"Zubenelgenubi": astruct{},
|
|
|
|
"bantering": astruct{},
|
|
|
|
"tumblers": astruct{},
|
|
|
|
"horticulturists": astruct{},
|
|
|
|
"thallium": astruct{},
|
2019-10-07 16:35:58 +00:00
|
|
|
"capital": astruct{},
|
|
|
|
"paramese": astruct{},
|
|
|
|
"vaccinationist": astruct{},
|
|
|
|
"shadrach": astruct{},
|
|
|
|
"unsincereness": astruct{},
|
|
|
|
"undazzled": astruct{},
|
|
|
|
"heautomorphism": astruct{},
|
|
|
|
"undermeasure": astruct{},
|
|
|
|
"intentionally": astruct{},
|
|
|
|
"glycine": astruct{},
|
|
|
|
"basiliscine": astruct{},
|
|
|
|
"preinvolvement": astruct{},
|
|
|
|
"adversaria": astruct{},
|
|
|
|
"capocchia": astruct{},
|
|
|
|
"annunciable": astruct{},
|
|
|
|
"unguidableness": astruct{},
|
|
|
|
"prankster": astruct{},
|
|
|
|
"jagless": astruct{},
|
|
|
|
"hormonal": astruct{},
|
|
|
|
"crenature": astruct{},
|
|
|
|
"unfluttering": astruct{},
|
|
|
|
"councilmanic": astruct{},
|
|
|
|
"Micraster": astruct{},
|
|
|
|
"raphidiferous": astruct{},
|
|
|
|
"groomer": astruct{},
|
2016-02-18 17:50:29 +00:00
|
|
|
}
|
|
|
|
var mnil map[string]astruct = nil
|
|
|
|
m2 := map[int]*astruct{1: &astruct{10, 11}}
|
|
|
|
m3 := map[astruct]int{{1, 1}: 42, {2, 2}: 43}
|
2020-08-11 15:34:27 +00:00
|
|
|
m4 := map[astruct]astruct{{1, 1}: {11, 11}, {2, 2}: {22, 22}}
|
2024-12-05 03:14:47 +00:00
|
|
|
mlarge := map[largestruct]largestruct{largestruct{name: "one"}: largestruct{name: "oneval"}}
|
2020-08-11 15:34:27 +00:00
|
|
|
upnil := unsafe.Pointer(nil)
|
2016-02-18 17:50:29 +00:00
|
|
|
up1 := unsafe.Pointer(&i1)
|
|
|
|
i4 := 800
|
|
|
|
i5 := -3
|
|
|
|
i6 := -500
|
|
|
|
var err1 error = c1.sa[0]
|
|
|
|
var err2 error = c1.pb
|
|
|
|
var errnil error = nil
|
2017-07-07 18:08:36 +00:00
|
|
|
var psa *astruct = nil
|
|
|
|
var errtypednil error = psa
|
2016-02-18 17:50:29 +00:00
|
|
|
var iface1 interface{} = c1.sa[0]
|
|
|
|
var iface2 interface{} = "test"
|
|
|
|
var iface3 interface{} = map[string]constant.Value{}
|
|
|
|
var iface4 interface{} = []constant.Value{constant.MakeInt64(4)}
|
|
|
|
var ifacenil interface{} = nil
|
|
|
|
arr1 := [4]int{0, 1, 2, 3}
|
|
|
|
parr := &arr1
|
|
|
|
cpx1 := complex(1, 2)
|
|
|
|
const1 := constant.MakeInt64(3)
|
|
|
|
recursive1 := dstruct{}
|
|
|
|
recursive1.x = &recursive1
|
|
|
|
var iface5 interface{} = &recursive1
|
|
|
|
var iface2fn1 interface{} = afunc1
|
|
|
|
var iface2fn2 interface{} = afunc2
|
|
|
|
var mapinf maptype = map[string]interface{}{}
|
|
|
|
mapinf["inf"] = mapinf
|
|
|
|
var bencharr [64]benchstruct
|
|
|
|
var benchparr [64]*benchstruct
|
2019-06-13 00:35:00 +00:00
|
|
|
var issue1578 Block
|
2016-02-18 17:50:29 +00:00
|
|
|
mainMenu := Menu{
|
|
|
|
{Name: "home", Route: "/", Active: 1},
|
|
|
|
{Name: "About", Route: "/about", Active: 1},
|
|
|
|
{Name: "Login", Route: "/login", Active: 1},
|
|
|
|
}
|
2015-08-07 11:23:18 +00:00
|
|
|
var aas = []a{{nil}}
|
|
|
|
aas[0].aas = aas
|
2016-02-18 17:50:29 +00:00
|
|
|
b := B{A: A{-314}, C: &C{"hello"}, a: A{42}, ptr: &A{1337}}
|
|
|
|
b2 := B{A: A{42}, a: A{47}}
|
2016-04-24 17:15:39 +00:00
|
|
|
var sd D
|
2016-02-18 17:50:29 +00:00
|
|
|
|
2016-10-22 05:14:43 +00:00
|
|
|
ifacearr := []error{&astruct{}, nil}
|
|
|
|
efacearr := []interface{}{&astruct{}, "test", nil}
|
|
|
|
|
2016-04-24 23:14:42 +00:00
|
|
|
var mapanonstruct1 map[string]struct{}
|
|
|
|
var anonstruct1 struct{ val constant.Value }
|
|
|
|
var anonstruct2 struct{ i, j int }
|
|
|
|
var anoniface1 interface {
|
|
|
|
SomeFunction(struct{ val constant.Value })
|
|
|
|
OtherFunction(i, j int)
|
|
|
|
}
|
|
|
|
var anonfunc func(a struct{ i int }, b interface{}, c struct{ val constant.Value })
|
|
|
|
|
2016-02-18 17:50:29 +00:00
|
|
|
for i := range benchparr {
|
|
|
|
benchparr[i] = &benchstruct{}
|
|
|
|
}
|
|
|
|
|
2016-11-02 21:32:48 +00:00
|
|
|
ni8 := int8(-5)
|
|
|
|
ni16 := int16(-5)
|
|
|
|
ni32 := int32(-5)
|
2020-08-11 15:34:27 +00:00
|
|
|
ni64 := int64(-5)
|
2016-11-02 21:32:48 +00:00
|
|
|
|
2017-01-20 22:22:36 +00:00
|
|
|
pinf := math.Inf(+1)
|
|
|
|
ninf := math.Inf(-1)
|
|
|
|
nan := math.NaN()
|
|
|
|
|
2017-02-10 00:26:38 +00:00
|
|
|
var iface6 interface{}
|
|
|
|
var ptrinf *interface{}
|
|
|
|
iface6 = &ptrinf
|
|
|
|
ptrinf = &iface6
|
|
|
|
|
|
|
|
sliceinf := make([]interface{}, 1)
|
|
|
|
sliceinf[0] = sliceinf
|
|
|
|
|
2017-05-26 18:36:28 +00:00
|
|
|
zsvar := struct{}{}
|
|
|
|
zsslice := make([]struct{}, 3)
|
|
|
|
zsvmap := map[string]struct{}{"testkey": struct{}{}}
|
2017-05-30 21:26:10 +00:00
|
|
|
var tm truncatedMap
|
|
|
|
tm.v = []map[string]astruct{m1}
|
2021-05-04 19:53:42 +00:00
|
|
|
var rettm = func() truncatedMap { return tm }
|
2017-05-26 18:36:28 +00:00
|
|
|
|
2017-09-06 14:54:17 +00:00
|
|
|
emptyslice := []string{}
|
|
|
|
emptymap := make(map[string]string)
|
|
|
|
|
2017-09-14 10:01:13 +00:00
|
|
|
byteslice := []byte{116, 195, 168, 115, 116}
|
2021-10-08 06:57:51 +00:00
|
|
|
bytestypeslice := []Byte{116, 195, 168, 115, 116}
|
2017-09-14 10:01:13 +00:00
|
|
|
runeslice := []rune{116, 232, 115, 116}
|
|
|
|
|
2018-10-12 17:00:13 +00:00
|
|
|
bytearray := [5]byte{116, 195, 168, 115, 116}
|
2021-10-08 06:57:51 +00:00
|
|
|
bytetypearray := [5]Byte{116, 195, 168, 115, 116}
|
2018-10-12 17:00:13 +00:00
|
|
|
runearray := [4]rune{116, 232, 115, 116}
|
|
|
|
|
2018-03-31 16:43:02 +00:00
|
|
|
longstr := "very long string 0123456789a0123456789b0123456789c0123456789d0123456789e0123456789f0123456789g012345678h90123456789i0123456789j0123456789"
|
2023-12-12 19:43:41 +00:00
|
|
|
longbyteslice := []byte(longstr)
|
2021-03-25 16:44:32 +00:00
|
|
|
m5 := map[C]int{{longstr}: 1}
|
2021-06-16 20:27:38 +00:00
|
|
|
m6 := map[string]int{longstr: 123}
|
2021-06-22 15:14:47 +00:00
|
|
|
m7 := map[C]C{{longstr}: {"hello"}}
|
2021-06-16 20:27:38 +00:00
|
|
|
cl := C{s: longstr}
|
2018-04-13 17:05:55 +00:00
|
|
|
var nilstruct *astruct = nil
|
|
|
|
|
dap: handle SetVariable requests (#2440)
* dap: handle SetVariable requests
The handler invokes debugger.SetVariableInScope, except for
string type variables. For which, we rely on the `call` command.
Moved the call expression handling logic to the new `doCall`
function, so it can be reused by the SetVariable requenst
handler.
With this PR, every successful SetVariable request triggers
a StoppedEvent - that's a hack to reset the variablesHandle
map internally and notify the client of this change. It will
be nice if we can just update cached data corresponding to
the updated variable. But I cannot find an easy and safe way
to achieve this yet.
Also fixed a small bug in the call expression evaluation -
Previously, dlv dap returned an error "Unable to evaluate
expression: call stopped" if the call expression is for
variable assignment. (e.g. "call animal = "rabbit").
* dap: address comments from aarzilli
resetHandlesForStop & sendStoppedEvent unconditionally after
call command is left as a TODO - This is an existing code path
(just refactored) and an preexisting bug. Fixing it here
requires updates in TestEvaluateCallRequest and I prefer
addressing it in a separate cl.
Disabled call injection testing on arm64. Separated TestSetVariable
into two, one that doesn't involve call injection and another that
may involve call injection.
Fixed variableByName by removing unnecessary recursion.
* dap: address polina's comments
- removed the hard reset for every variable set
- added tests for various variable types
- added tests that involves interrupted function calls. (breakpoint/panic)
And,
- changed to utilize EvalVariableInScope to access the variable instead
of searching the children by name.
- changed to utilize evaluate requests when verifying whether the variable
is changed as expected in testing. Since now we avoid resetting the variable
handles after variable reset, either we need to trigger scope changes
explicitly, or stop depending on the variables request.
* dap: address comments
- Discuss the problem around the current doCall implementation
and the implication.
- Refine the description on how VS Code handles after setVariable
and evaluate request (there could be followup scopes/evaluate requests).
- Use the explicit line numbers for breakpoints in the SetVariable tests.
- Do not use errors.Is - we could've used golang.org/x/xerrors polyfill
but that's an additional dependency, and we will remove this check once
tests that depend on old behavior are fixed.
* dap: remove errTerminated and adjust the test
* dap: evaluate in the outer frame, instead of advancing to the next bp
2021-05-20 17:05:47 +00:00
|
|
|
val := A{val: 1} // val vs val.val
|
2018-07-30 19:02:35 +00:00
|
|
|
var as2 astruct
|
2018-07-27 17:19:01 +00:00
|
|
|
s4 := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 0}
|
|
|
|
|
2018-09-14 11:52:41 +00:00
|
|
|
var iface2map interface{} = map[string]interface{}{
|
|
|
|
"a": map[string]interface{}{
|
|
|
|
"1": map[string]interface{}{
|
|
|
|
"x": 1,
|
|
|
|
"y": 2,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2019-07-02 17:55:27 +00:00
|
|
|
ll := &List{0, &List{1, &List{2, &List{3, &List{4, nil}}}}}
|
2020-08-11 15:34:27 +00:00
|
|
|
unread := (*int)(unsafe.Pointer(uintptr(12345)))
|
2019-07-02 17:55:27 +00:00
|
|
|
|
2021-01-29 17:25:31 +00:00
|
|
|
w2 := &W2{W1{T{"T-inside-W1"}}, T{"T-inside-W2"}}
|
|
|
|
w3 := &W3{&W1{T{"T-inside-W1"}}, T{"T-inside-W3"}}
|
|
|
|
w4 := &W4{&W1{T{"T-inside-W1"}}}
|
|
|
|
w5 := &W5{nil}
|
|
|
|
w5.W5 = w5
|
|
|
|
|
2023-03-16 19:12:20 +00:00
|
|
|
os.Setenv("TZ", "UTC")
|
2023-03-30 15:54:04 +00:00
|
|
|
tim1 := time.Unix(233431200, 0).UTC()
|
2023-10-12 10:24:49 +00:00
|
|
|
loc, _ := time.LoadLocation("America/Mazatlan")
|
2022-03-25 20:59:57 +00:00
|
|
|
tim2, _ := time.ParseInLocation("2006-01-02 15:04:05", "2022-06-07 02:03:04", loc)
|
2022-09-29 17:08:19 +00:00
|
|
|
typedstringvar := String("blah")
|
|
|
|
namedA1 := astructName1{12, 45}
|
|
|
|
namedA2 := astructName2{13, 46}
|
2022-03-25 20:59:57 +00:00
|
|
|
|
2023-03-01 19:27:06 +00:00
|
|
|
badslice := []int{1, 2, 3}
|
|
|
|
h := (*reflect.SliceHeader)(unsafe.Pointer(&badslice))
|
|
|
|
h.Data = 0
|
2023-03-16 19:12:20 +00:00
|
|
|
tim3 := time.Date(300000, 1, 1, 0, 0, 0, 0, time.Local)
|
2023-03-01 19:27:06 +00:00
|
|
|
|
2023-05-08 17:38:53 +00:00
|
|
|
int3chan := make(chan ThreeInts, 5)
|
|
|
|
int3chan <- ThreeInts{a: 1}
|
|
|
|
int3chan <- ThreeInts{a: 2}
|
|
|
|
int3chan <- ThreeInts{a: 3}
|
|
|
|
|
2023-07-07 17:32:05 +00:00
|
|
|
var ptrinf2 pptr
|
|
|
|
ptrinf2 = &ptrinf2
|
|
|
|
|
2024-09-03 17:36:42 +00:00
|
|
|
enum1 := ByteConst
|
|
|
|
enum2 := StringConst
|
|
|
|
enum3 := UintConst
|
|
|
|
enum4 := IntConst
|
|
|
|
enum5 := BoolConst
|
|
|
|
enum6 := FloatConst
|
2024-09-05 07:23:21 +00:00
|
|
|
var zeropoint4 float64 = 0.4
|
2024-09-03 17:36:42 +00:00
|
|
|
|
2016-02-18 17:50:29 +00:00
|
|
|
var amb1 = 1
|
|
|
|
runtime.Breakpoint()
|
|
|
|
for amb1 := 0; amb1 < 10; amb1++ {
|
|
|
|
fmt.Println(amb1)
|
|
|
|
}
|
2016-11-02 21:32:48 +00:00
|
|
|
|
2021-02-23 16:29:06 +00:00
|
|
|
longarr := [100]int{}
|
|
|
|
longslice := make([]int, 100, 100)
|
|
|
|
|
2015-08-07 11:23:18 +00:00
|
|
|
runtime.Breakpoint()
|
2024-12-05 03:14:47 +00:00
|
|
|
fmt.Println(i1, i2, i3, p1, pp1, amb1, s1, s3, a0, a1, p2, p3, s2, as1, str1, f1, fn1, fn2, nilslice, nilptr, ch1, chnil, m1, mnil, m2, m3, m4, m5, upnil, up1, i4, i5, i6, err1, err2, errnil, iface1, iface2, ifacenil, arr1, parr, cpx1, const1, iface3, iface4, recursive1, recursive1.x, iface5, iface2fn1, iface2fn2, bencharr, benchparr, mapinf, mainMenu, b, b2, sd, anonstruct1, anonstruct2, anoniface1, anonfunc, mapanonstruct1, ifacearr, efacearr, ni8, ni16, ni32, ni64, pinf, ninf, nan, zsvmap, zsslice, zsvar, tm, rettm, errtypednil, emptyslice, emptymap, byteslice, bytestypeslice, runeslice, bytearray, bytetypearray, runearray, longstr, nilstruct, as2, as2.NonPointerReceiverMethod, s4, iface2map, issue1578, ll, unread, w2, w3, w4, w5, longarr, longslice, val, m6, m7, cl, tim1, tim2, typedstringvar, namedA1, namedA2, astructName1(namedA2), badslice, tim3, int3chan, longbyteslice, enum1, enum2, enum3, enum4, enum5, enum6, zeropoint4, mlarge)
|
2015-08-07 11:23:18 +00:00
|
|
|
}
|