From 78cf824c108c714b1d8bcc4e5db4457b28c7882e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Geisend=C3=B6rfer?= Date: Sat, 9 Jan 2021 17:54:57 +0100 Subject: [PATCH] Move heap example --- examples/memory/go.mod | 5 +++++ examples/memory/go.sum | 2 ++ examples/{heap.go => memory/main.go} | 2 -- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 examples/memory/go.mod create mode 100644 examples/memory/go.sum rename examples/{heap.go => memory/main.go} (98%) 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 (