File: longstrings.go

package info (click to toggle)
delve 1.26.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 15,084 kB
  • sloc: ansic: 111,947; sh: 194; asm: 147; makefile: 43; python: 23
file content (22 lines) | stat: -rw-r--r-- 340 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package main

import (
	"runtime"
)

func buildString(length int) string {
	s := ""
	for i := 0; i < length; i++ {
		s = s + "x"
	}
	return s
}

func main() {
	s513 := buildString(513)
	s1025 := buildString(1025)
	s4097 := buildString(4097)
	nested := map[int]string{513: s513, 1025: s1025, 4097: s4097}
	runtime.Breakpoint()
	_ = nested
}