gobuild

command module
v0.0.0-...-e5e4cde Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2015 License: GPL-2.0 Imports: 34 Imported by: 0

README

Project moved to https://github.com/gobuild/gobuild3


gobuild.io

Build Status Go Walker Gobuild Download

News http://beta.gobuild.io

gobuild2 beta was released.

QQ Group: 368327021

Thanks very much for you guys stars which encourage me to rewrite this website to gobuild2. Thanks very much. Thanks open source.

Go build + package + distributions

There are a lot of golang open souce project, sometime we want to share code, sometimes we want to share binary file to friends. But few website offers golang binary shares. So I created one.

How to use
wget gobuild.io/github.com/codeskyblue/fswatch/v1.0/linux/amd64 -O fswatch.zip

-- unfinished -- wget gobuild.io/linux/amd64/v1.0/github.com/codeskyblue/fswatch/fswatch.zip

.gobuild.yml

use .gobuild.yml file, you can use more function with https://gobuild.io.

first you need to add a file .gobuild.yml into project root.

For beego project: (platform will will invode bee pack -f zip)

framework: beego

For revel project: (revel package)

framework: revel

For self define which file should be packaged.(excludes is not working now). And binary file is defaulted added, you don't need to worry about it.

filesets:
	includes:
		- static
		- LICENSE
		- README.md
	excludes:
		- CHANGELOG

There is a default for every project: see default gobuildrc

other build tool support

support gopm.

Test is .gopmfile exists in project root, then use alias go=gopm instead.

add badge

Gobuild Download

assume you project address is github.com/codeskyblue/gobuild

and the png address is: http://gobuild.io/badge/github.com/codeskyblue/gobuild/download.png

Markdown link is link below

[![Gobuild Download](http://gobuild.io/badge/github.com/codeskyblue/gobuild/download.png)](http://gobuild.io/github.com/codeskyblue/gobuild)

For developers
Prepare dependencies
go get -d github.com/codeskyblue/gobuild
# cd github.com/codeskyblue/gobuild
bin/install.sh
# config file: config.yaml
./gobuild

2 example project, which contains .gobuild

  • github.com/codeskyblue/gobuild-beegotest
  • github.com/codeskyblue/gobuild-reveltest
Q/A(knownen issues)
not support os/user

golang's cross compile not support CGO, but package os/user use CGO.

solutions: use environment variables to get use-name http://stackoverflow.com/questions/7922270/obtain-users-home-directory

Contributers

Documentation

Overview

use martini as web framework

Directories

Path Synopsis
Godeps
_workspace/src/code.google.com/p/freetype-go/freetype
The freetype package provides a convenient API to draw text onto an image.
The freetype package provides a convenient API to draw text onto an image.
_workspace/src/code.google.com/p/freetype-go/freetype/raster
The raster package provides an anti-aliasing 2-D rasterizer.
The raster package provides an anti-aliasing 2-D rasterizer.
_workspace/src/code.google.com/p/freetype-go/freetype/truetype
Package truetype provides a parser for the TTF and TTC file formats.
Package truetype provides a parser for the TTF and TTC file formats.
_workspace/src/github.com/Unknwon/cae/zip
Package zip enables you to transparently read or write ZIP compressed archives and the files inside them.
Package zip enables you to transparently read or write ZIP compressed archives and the files inside them.
_workspace/src/github.com/Unknwon/com
Package com is an open source project for commonly used functions for the Go programming language.
Package com is an open source project for commonly used functions for the Go programming language.
_workspace/src/github.com/astaxie/beego/utils/captcha
an example for use captcha “` package controllers import ( "github.com/astaxie/beego" "github.com/astaxie/beego/cache" "github.com/astaxie/beego/utils/captcha" ) var cpt *captcha.Captcha func init() { // use beego cache system store the captcha data store := cache.NewMemoryCache() cpt = captcha.NewWithFilter("/captcha/", store) } type MainController struct { beego.Controller } func (this *MainController) Get() { this.TplNames = "index.tpl" } func (this *MainController) Post() { this.TplNames = "index.tpl" this.Data["Success"] = cpt.VerifyReq(this.Ctx.Request) } “` template usage “` {{.Success}} <form action="/" method="post"> {{create_captcha}} <input name="captcha" type="text"> </form> “` modifiy and integrated to Beego from https://github.com/dchest/captcha modifiy and integrated to Beego from https://github.com/dchest/captcha
an example for use captcha “` package controllers import ( "github.com/astaxie/beego" "github.com/astaxie/beego/cache" "github.com/astaxie/beego/utils/captcha" ) var cpt *captcha.Captcha func init() { // use beego cache system store the captcha data store := cache.NewMemoryCache() cpt = captcha.NewWithFilter("/captcha/", store) } type MainController struct { beego.Controller } func (this *MainController) Get() { this.TplNames = "index.tpl" } func (this *MainController) Post() { this.TplNames = "index.tpl" this.Data["Success"] = cpt.VerifyReq(this.Ctx.Request) } “` template usage “` {{.Success}} <form action="/" method="post"> {{create_captcha}} <input name="captcha" type="text"> </form> “` modifiy and integrated to Beego from https://github.com/dchest/captcha modifiy and integrated to Beego from https://github.com/dchest/captcha
_workspace/src/github.com/aybabtme/color
Package color colorizes your terminal strings.
Package color colorizes your terminal strings.
_workspace/src/github.com/aybabtme/color/brush
Package brush provides convenience types to use Brush types as plain strings.
Package brush provides convenience types to use Brush types as plain strings.
_workspace/src/github.com/codegangsta/inject
Package inject provides utilities for mapping and injecting dependencies in various ways.
Package inject provides utilities for mapping and injecting dependencies in various ways.
_workspace/src/github.com/codegangsta/martini
Package martini is a powerful package for quickly writing modular web applications/services in Golang.
Package martini is a powerful package for quickly writing modular web applications/services in Golang.
_workspace/src/github.com/codegangsta/martini-contrib/render
Package render is a middleware for Martini that provides easy JSON serialization and HTML template rendering.
Package render is a middleware for Martini that provides easy JSON serialization and HTML template rendering.
_workspace/src/github.com/go-sql-driver/mysql
Go MySQL Driver - A MySQL-Driver for Go's database/sql package The driver should be used via the database/sql package: import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user:password@/dbname") See https://github.com/go-sql-driver/mysql#usage for details
Go MySQL Driver - A MySQL-Driver for Go's database/sql package The driver should be used via the database/sql package: import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user:password@/dbname") See https://github.com/go-sql-driver/mysql#usage for details
_workspace/src/github.com/lunny/xorm
Package xorm is a simple and powerful ORM for Go.
Package xorm is a simple and powerful ORM for Go.
_workspace/src/github.com/shxsun/go-sh
Package go-sh is intented to make shell call with golang more easily.
Package go-sh is intented to make shell call with golang more easily.
_workspace/src/github.com/shxsun/go-uuid
The uuid package generates and inspects UUIDs.
The uuid package generates and inspects UUIDs.
_workspace/src/github.com/shxsun/go-websocket
Package websocket implements a client and server for the WebSocket protocol as specified in RFC 6455.
Package websocket implements a client and server for the WebSocket protocol as specified in RFC 6455.
_workspace/src/github.com/shxsun/goyaml
Package goyaml implements YAML support for the Go language.
Package goyaml implements YAML support for the Go language.
_workspace/src/github.com/shxsun/klog
beelog project klog utils.go
beelog project klog utils.go
broadcast package some code from dotcloud/docker
broadcast package some code from dotcloud/docker

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL