Skip to content
Snippets Groups Projects
Commit c77e8b66 authored by Markin Igor's avatar Markin Igor
Browse files

Initialize empty go project.

parent 2485b5b2
No related branches found
No related tags found
1 merge request!4Use webpack for bundling JS libs and move Golang code related to Iframe generation there
.idea .idea
*.iml *.iml
bin/
# 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
# 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
Makefile 0 → 100644
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
main.go 0 → 100644
package main
import "fmt"
func main() {
fmt.Println("Hello, world3a.")
}
func test() {
fmt.Println("Test function")
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment