gails

package module
v0.0.0-...-c17893f Latest Latest
Warning

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

Go to latest
Published: May 27, 2016 License: MIT Imports: 19 Imported by: 0

README

gails

A web framework for golang web applications inspired by Ruby on Rails

Devel

Env

go get -u github.com/nsf/gocode
go get -u golang.org/x/tools/cmd/goimports
go get -u github.com/alecthomas/gometalinter
go get -u github.com/kardianos/govendor

go get -u github.com/itpkg/gails
cd $GOPATH/src/github.com/itpkg/gails
govendor sync

Editor

Atom
apm install seti-ui seti-syntax
Plugs
  • go-plus
  • git-plus
  • react
  • atom-beautify
  • atom-typescript
  • autosave: enabled is true

Thanks

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action

func Action(f cli.ActionFunc) cli.ActionFunc

func IsProduction

func IsProduction() bool

func Logger

func Logger() *logging.Logger

func Main

func Main(n string) error

Main entry

func RandomStr

func RandomStr(sl int) string

func Register

func Register(ens ...Engine)

Register register engine

func Shell

func Shell(cmd string, args ...string) error

Shell 终端命令操作

Types

type Aes

type Aes struct {
	Cip cipher.Block
}

Aes encryptor

func (*Aes) Decode

func (p *Aes) Decode(buf []byte) ([]byte, error)

Decode decoder

func (*Aes) Encode

func (p *Aes) Encode(buf []byte) ([]byte, error)

Encode encoder

type Engine

type Engine interface {
	Map(*inject.Graph) error
	Mount(*gin.Engine)
	Assets() error
	Migrate()
	Seed()
	Shell() []cli.Command
}

type Model

type Model struct {
	ID        uint `gorm:"primary_key"`
	CreatedAt time.Time
	UpdatedAt time.Time
}

Directories

Path Synopsis
engines
cms
hr
ops

Jump to

Keyboard shortcuts

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