From 29e684988fbcd20ee63fa2fe35ad0b0942ae2c09 Mon Sep 17 00:00:00 2001 From: Yunkon Kim Date: Wed, 10 Jan 2024 16:22:13 +0900 Subject: [PATCH] Update `netutil` pakcage * Relocate `netutil` example * Add README.md to run the example --- src/examples/netutil/README.md | 19 +++++++++++++++++++ {examples => src/examples}/netutil/netutil.go | 0 2 files changed, 19 insertions(+) create mode 100644 src/examples/netutil/README.md rename {examples => src/examples}/netutil/netutil.go (100%) diff --git a/src/examples/netutil/README.md b/src/examples/netutil/README.md new file mode 100644 index 000000000..71f6a1747 --- /dev/null +++ b/src/examples/netutil/README.md @@ -0,0 +1,19 @@ +## `netutil` example + +Thia is an example of `netutil` package. +(see [netutil package](https://github.com/cloud-barista/cb-tumblebug/blob/main/src/core/common/netutil/netutil.go)) + +### How to execute this example + +**Move to the example directory** + +```bash +cd PROJECT_ROOT_DIR/src/examples/netutil +``` + +**Execute the example** + +```bash + +go run . +``` \ No newline at end of file diff --git a/examples/netutil/netutil.go b/src/examples/netutil/netutil.go similarity index 100% rename from examples/netutil/netutil.go rename to src/examples/netutil/netutil.go