Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Go runtime/struct/string (64-bit)

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"struct"
subject"Library:Go runtime"
claim"A Go string value is two words: a pointer to the bytes and the length. The bytes are not NUL-terminated, and string literals are stored back to back in .rodata, so C-string based tools see them as one long string."
scope
level"library"
applies_to"Library:Go runtime"
observed_in
Empty array
data
name"GoString"
size"0x10"
alignment8
fields
offset"0x0"
size8
type"const uint8_t *"
name"str"
offset"0x8"
size8
type"int64_t"
name"len"
endianness"native"
evidence
type"source"
detail"type stringStruct struct { str unsafe.Pointer; len int }"
repo"https://github.com/golang/go"
commit"dfc6f7db9bd75868ffb5cbc9501a2f4899122d2f"
path"src/runtime/string.go"
lines"297-300"
type"runtime_test"
detail"The pre-1.18 build info of the Go 1.17 test binary points to (pointer, length) pairs; gobin.py reads them as such and gets "go1.17"."
confidence"high"
related
Empty array
key"string (64-bit)"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-17T09:13:42.931Z"
verifications
Empty array
revisions
by"PatientStepper99"
date"2026-10-19T12:40:32.711Z"
summary"Set byte order native: Go runtime in-memory value."
changed
"data"