From c77e8b66b156841b45411cb4b7472d9c030d3b89 Mon Sep 17 00:00:00 2001
From: Markin Igor <markin.io210@gmail.com>
Date: Mon, 5 Nov 2018 14:46:57 +0300
Subject: [PATCH] Initialize empty go project.

---
 .gitignore |  1 +
 Gopkg.lock |  9 +++++++++
 Gopkg.toml | 30 ++++++++++++++++++++++++++++++
 Makefile   | 24 ++++++++++++++++++++++++
 main.go    | 11 +++++++++++
 5 files changed, 75 insertions(+)
 create mode 100644 Gopkg.lock
 create mode 100644 Gopkg.toml
 create mode 100644 Makefile
 create mode 100644 main.go

diff --git a/.gitignore b/.gitignore
index c38fa4e..b200425 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 .idea
 *.iml
+bin/
diff --git a/Gopkg.lock b/Gopkg.lock
new file mode 100644
index 0000000..10ef811
--- /dev/null
+++ b/Gopkg.lock
@@ -0,0 +1,9 @@
+# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
+
+
+[solve-meta]
+  analyzer-name = "dep"
+  analyzer-version = 1
+  input-imports = []
+  solver-name = "gps-cdcl"
+  solver-version = 1
diff --git a/Gopkg.toml b/Gopkg.toml
new file mode 100644
index 0000000..d7072c2
--- /dev/null
+++ b/Gopkg.toml
@@ -0,0 +1,30 @@
+# Gopkg.toml example
+#
+# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
+# for detailed Gopkg.toml documentation.
+#
+# required = ["github.com/user/thing/cmd/thing"]
+# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
+#
+# [[constraint]]
+#   name = "github.com/user/project"
+#   version = "1.0.0"
+#
+# [[constraint]]
+#   name = "github.com/user/project2"
+#   branch = "dev"
+#   source = "github.com/myfork/project2"
+#
+# [[override]]
+#   name = "github.com/x/y"
+#   version = "2.4.0"
+#
+# [prune]
+#   non-go = false
+#   go-tests = true
+#   unused-packages = true
+
+
+[prune]
+  go-tests = true
+  unused-packages = true
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3150ee9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+SERVER_OUT := "bin/server"
+PKG := "code.vereign.com/code/vcl"
+SERVER_PKG_BUILD := "${PKG}"
+PKG_LIST := $(shell go list ${PKG}/... | grep -v /vendor/)
+
+.PHONY: all api server
+
+all: server
+
+dep: ## Get the dependencies
+	dep ensure
+
+server: dep ## Build the binary file for server
+	@go build -i -v -o $(SERVER_OUT) $(SERVER_PKG_BUILD)
+
+clean: ## Remove previous builds
+	@rm $(SERVER_OUT)
+
+help: ## Display this help screen
+	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
+
+fresh: 
+	rm -rf ./vendor
+	rm -rf ./Gopkg.lock
\ No newline at end of file
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..1b164b1
--- /dev/null
+++ b/main.go
@@ -0,0 +1,11 @@
+package main
+
+import "fmt"
+
+func main() {
+	fmt.Println("Hello, world3a.")
+}
+
+func test() {
+	fmt.Println("Test function")
+}
-- 
GitLab