Skip to content

Commit

Permalink
cosgo v0.9
Browse files Browse the repository at this point in the history
	removed mandrill support
	better -nolog and -quiet
	encrypt messages with gpg
	move routes to its own file
	add custom static extensions ( -ext flag )
	rewrote lots of things
	removed lots of things
	binary now includes template directory
  • Loading branch information
aerth committed Jun 8, 2016
1 parent 4fb72d2 commit 431e2e9
Show file tree
Hide file tree
Showing 10 changed files with 862 additions and 1,140 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@
# yo type "make cross" to cross compile!
# for releases i use https://github.com/aerth/hashsum
NAME=cosgo
VERSION=0.7
RELEASE:=${VERSION}.$(shell git rev-parse --verify --short HEAD)
GO_LDFLAGS=-ldflags "-X main.Version=$(RELEASE)"
VERSION=0.9
RELEASE:=${VERSION}.X${COMMIT}
COMMIT=$(shell git rev-parse --verify --short HEAD)
GO_LDFLAGS=-ldflags "-X main.version=$(RELEASE)"
PREFIX=/usr/local
PREFIX?=$(shell pwd)
ifeq (,${GOPATH})
export GOPATH=/tmp/gopath
endif
all: deps
all:
set -e
go fmt
# go vet
mkdir bin || true
mkdir -p bin
go build -v ${GO_LDFLAGS} -o bin/${NAME}-v${RELEASE} && echo Built ${NAME}-${RELEASE}
chmod 755 bin/${NAME}-v${RELEASE}

Expand Down
331 changes: 331 additions & 0 deletions bindata.go

Large diffs are not rendered by default.

284 changes: 0 additions & 284 deletions boot.go

This file was deleted.

15 changes: 15 additions & 0 deletions captcha.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package main

import "time"

const (
// CaptchaLength is the minimum captcha string length.
CaptchaLength = 3
// CaptchaVariation will add *up to* CaptchaVariation to the CaptchaLength
CaptchaVariation = 2
// CollectNum triggers a garbage collection routine after X captchas are created.
CollectNum = 100
Expiration = 10 * time.Minute
StdWidth = 240
StdHeight = 90
)
Loading

0 comments on commit 431e2e9

Please sign in to comment.