orange

command module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: GPL-2.0 Imports: 15 Imported by: 0

README

Orange ����������һ�� Golang ���� web ��������

��Ҫ����

  • ���� golang ���ܲ�����
  • MVC �ֲ����ƣ��߼�������
  • ���Ĺ��ܶ�С�����������ȸߣ�
  • �ḻ�Ĺ��߰����� ͼƬ��֤�룬���ػ��棬�����ʼ���http�����ͻ��ˣ���־ �ȳ��ù��߰���
  • �������£�����Ӧ���ٶ������ϳ�����Ŀ��Ϊ�˽�������ҵ�����⣬���ܳ������£�
  • Դ����ַ https://gitee.com/zhucheer/orange
  • �ĵ���ַ https://www.kancloud.cn/chase688/orange_framework

���ٿ�ʼ

��װ

������Ŀ go get gitee.com/zhucheer/orange

����һ������Ŀ

>  orange create project // ����ִ�к󽫻���GOPATH/srcĿ¼��������Ŀ

�������� orange ����汨��������Ҫ�� GOBIN ���ӵ�����������

������Ŀ

  • ͨ�� go mod ������������, ���� go �汾С�� 1.12 ��Ҫ�ֶ����� go mod ;
// window ���� cmd ��ִ�У�set GO111MODULE=on
// linux ��ִ�У�export GO111MODULE=on

  • ������ĿĿ¼������ִ������������
>  go mod init // ��ʼ��go mod ������
>  go mod tidy // ����������
>  go mod vendor // ����������������ĿĿ¼��ȥ
>  go run main.go [--config=config/config.toml] //������Ŀ Ĭ�����ò������Ժ��ԣ��������ļ�λ�øı���ͨ������ָ����

������Ŀ

���ú�GOBIN����������������ĿĿ¼��Ȼ��ִ��������� window�� orange.exe build linux��orange build ��������Ĭ�ϻὫ���������� build Ŀ¼�£������õij�������ֱ�����У������� golang ������

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
generated by go run gen.go; DO NOT EDIT
generated by go run gen.go; DO NOT EDIT
Package session provider Usage: import( "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("memory", `{"cookieName":"gosessionid", "enableSetCookie,omitempty": true, "gclifetime":3600, "maxLifetime": 3600, "secure": false, "cookieLifeTime": 3600, "providerConfig": ""}`) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md
Package session provider Usage: import( "github.com/astaxie/beego/session" ) func init() { globalSessions, _ = session.NewManager("memory", `{"cookieName":"gosessionid", "enableSetCookie,omitempty": true, "gclifetime":3600, "maxLifetime": 3600, "secure": false, "cookieLifeTime": 3600, "providerConfig": ""}`) go globalSessions.GC() } more docs: http://beego.me/docs/module/session.md

Jump to

Keyboard shortcuts

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