diff --git a/examples/memory/go.mod b/examples/memory/go.mod new file mode 100644 index 0000000..8c007fb --- /dev/null +++ b/examples/memory/go.mod @@ -0,0 +1,5 @@ +module github.com/felixge/go-profiler-notes/examples/memory + +go 1.15 + +require golang.org/x/sync v0.0.0-20201207232520-09787c993a3a diff --git a/examples/memory/go.sum b/examples/memory/go.sum new file mode 100644 index 0000000..5f7eb37 --- /dev/null +++ b/examples/memory/go.sum @@ -0,0 +1,2 @@ +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a h1:DcqTD9SDLc+1P/r1EmRBwnVsrOwW+kk2vWf9n+1sGhs= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= diff --git a/examples/heap.go b/examples/memory/main.go similarity index 98% rename from examples/heap.go rename to examples/memory/main.go index 74ca7b1..dd8e386 100644 --- a/examples/heap.go +++ b/examples/memory/main.go @@ -1,5 +1,3 @@ -// +build ignore - package main import (