gf

package module
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: MIT Imports: 0 Imported by: 0

README

GoFrame

Go Doc Build Status Go Report Documents License Language Release

GF(GoFrame) is a modular, lightweight, loosely coupled, high performance application development framework written in Go. Supporting graceful server, hot updates, multi-domain, multi-port, multi-service, HTTP/HTTPS, dynamic/hook routing and many more features. Providing a series of core components and dozens of practical modules.

Installation

go get -u gitee.com/johng/gf

or use go.mod

require gitee.com/johng/gf latest

Limitation

golang version >= 1.9.2

Documentation

Architecture

Quick Start

package main

import (
    "gitee.com/johng/gf/g"
    "gitee.com/johng/gf/g/net/ghttp"
)

func main() {
    s := g.Server()
    s.BindHandler("/", func(r *ghttp.Request) {
        r.Response.Write("Hello World")
    })
    s.Run()
}

View More..

License

GF is licensed under the MIT License, 100% free and open-source, forever.

Contributors(TOP 10)




Donators

Documentation

Index

Constants

View Source
const AUTHORS = "john<john@goframe.org>"
View Source
const VERSION = "v1.4.7"

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
g
container/garray
Package garray provides kinds of concurrent-safe(alternative) arrays.
Package garray provides kinds of concurrent-safe(alternative) arrays.
container/gchan
Package gchan provides graceful operations for channel.
Package gchan provides graceful operations for channel.
container/glist
Package glist provides a concurrent-safe(alternative) doubly linked list.
Package glist provides a concurrent-safe(alternative) doubly linked list.
container/gmap
Package gmap provides kinds of concurrent-safe(alternative) maps.
Package gmap provides kinds of concurrent-safe(alternative) maps.
container/gpool
Package gpool provides a object-reusable concurrent-safe pool.
Package gpool provides a object-reusable concurrent-safe pool.
container/gqueue
Package gqueue provides a dynamic/static concurrent-safe(alternative) queue.
Package gqueue provides a dynamic/static concurrent-safe(alternative) queue.
container/gring
Package gring provides a concurrent-safe(alternative) ring(circular lists).
Package gring provides a concurrent-safe(alternative) ring(circular lists).
container/gset
Package gset provides kinds of concurrent-safe(alternative) sets.
Package gset provides kinds of concurrent-safe(alternative) sets.
container/gtype
Package gtype provides kinds of high performance, concurrent-safe basic variable types.
Package gtype provides kinds of high performance, concurrent-safe basic variable types.
container/gvar
Package gvar provides an universal variable type, like generics.
Package gvar provides an universal variable type, like generics.
crypto/gaes
Package gaes provides useful API for AES encryption/decryption algorithms.
Package gaes provides useful API for AES encryption/decryption algorithms.
crypto/gcrc32
Package gcrc32 provides useful API for CRC32 encryption/decryption algorithms.
Package gcrc32 provides useful API for CRC32 encryption/decryption algorithms.
crypto/gdes
Package gdes provides useful API for DES encryption/decryption algorithms.
Package gdes provides useful API for DES encryption/decryption algorithms.
crypto/gmd5
Package gmd5 provides useful API for MD5 encryption/decryption algorithms.
Package gmd5 provides useful API for MD5 encryption/decryption algorithms.
crypto/gsha1
Package gsha1 provides useful API for SHA1 encryption/decryption algorithms.
Package gsha1 provides useful API for SHA1 encryption/decryption algorithms.
database/gdb
Package gdb provides ORM features for popular relationship databases.
Package gdb provides ORM features for popular relationship databases.
database/gkafka
Package gkafka provides producer and consumer client for kafka server.
Package gkafka provides producer and consumer client for kafka server.
database/gredis
Package gredis provides client for redis server.
Package gredis provides client for redis server.
encoding/gbase64
Package gbase64 provides useful API for BASE64 encoding/decoding algorithms.
Package gbase64 provides useful API for BASE64 encoding/decoding algorithms.
encoding/gbinary
Package gbinary provides useful API for handling binary/bytes data.
Package gbinary provides useful API for handling binary/bytes data.
encoding/gcharset
Package gcharset provides converting string to requested character encoding.
Package gcharset provides converting string to requested character encoding.
encoding/gcompress
Package gcompress provides kinds of compression algorithms for binary/bytes data.
Package gcompress provides kinds of compression algorithms for binary/bytes data.
encoding/ghash
Package ghash provides some popular hash functions(uint32/uint64) in go.
Package ghash provides some popular hash functions(uint32/uint64) in go.
encoding/ghtml
Package ghtml provides useful API for HTML content handling.
Package ghtml provides useful API for HTML content handling.
encoding/gjson
Package gjson provides quite flexible and useful API for JSON/XML/YAML/TOML content handling.
Package gjson provides quite flexible and useful API for JSON/XML/YAML/TOML content handling.
encoding/gparser
Package gparser provides a flexible and easy way for accessing/converting variable and JSON/XML/YAML/TOML contents.
Package gparser provides a flexible and easy way for accessing/converting variable and JSON/XML/YAML/TOML contents.
encoding/gtoml
Package gtoml provides accessing and converting for TOML content.
Package gtoml provides accessing and converting for TOML content.
encoding/gurl
Package gurl provides useful API for URL handling.
Package gurl provides useful API for URL handling.
encoding/gxml
Package gxml provides accessing and converting for XML content.
Package gxml provides accessing and converting for XML content.
encoding/gyaml
Package gyaml provides accessing and converting for YAML content.
Package gyaml provides accessing and converting for YAML content.
frame/gins
Package gins provides instances management and some core components.
Package gins provides instances management and some core components.
frame/gmvc
Package gmvc provides basic object classes for MVC.
Package gmvc provides basic object classes for MVC.
net
net/ghttp
Package ghttp provides quite powerful HTTP server and simple client implementations.
Package ghttp provides quite powerful HTTP server and simple client implementations.
net/gipv4
Package gipv4 provides useful API for IPv4 address handling.
Package gipv4 provides useful API for IPv4 address handling.
net/gipv6
Package gipv4 provides useful API for IPv6 address handling.
Package gipv4 provides useful API for IPv6 address handling.
net/gscanner
Package gscanner provides a port scanner for local intranet.
Package gscanner provides a port scanner for local intranet.
net/gsmtp
Package gsmtp provides a SMTP client to access remote mail server.
Package gsmtp provides a SMTP client to access remote mail server.
net/gtcp
Package gtcp provides TCP server and client implementations.
Package gtcp provides TCP server and client implementations.
net/gudp
Package gtcp provides UDP server and client implementations.
Package gtcp provides UDP server and client implementations.
os
os/gcache
Package gcache provides high performance and concurrent-safe in-memory cache for process.
Package gcache provides high performance and concurrent-safe in-memory cache for process.
os/gcfg
Package gcfg provides reading, caching and managing for configuration files.
Package gcfg provides reading, caching and managing for configuration files.
os/gcmd
Package gcmd provides console operations, like options/values reading and command running.
Package gcmd provides console operations, like options/values reading and command running.
os/gcron
Package gcron implements a cron pattern parser and job runner.
Package gcron implements a cron pattern parser and job runner.
os/genv
Package genv provides operations for environment variables of system.
Package genv provides operations for environment variables of system.
os/gfcache
Package gfcache provides reading and caching for file contents.
Package gfcache provides reading and caching for file contents.
os/gfile
Package gfile provides easy-to-use operations for file system.
Package gfile provides easy-to-use operations for file system.
os/gflock
Package gflock implements a thread-safe sync.Locker interface for file locking.
Package gflock implements a thread-safe sync.Locker interface for file locking.
os/gfpool
Package gfpool provides io-reusable pool for file pointer.
Package gfpool provides io-reusable pool for file pointer.
os/gfsnotify
Package gfsnotify provides a platform-independent interface for file system notifications.
Package gfsnotify provides a platform-independent interface for file system notifications.
os/glog
Package glog implements powerful and easy-to-use levelled logging functionality.
Package glog implements powerful and easy-to-use levelled logging functionality.
os/gmlock
Package gmlock implements a thread-safe memory locker.
Package gmlock implements a thread-safe memory locker.
os/gproc
Package gproc implements communication and management of processes.
Package gproc implements communication and management of processes.
os/grpool
Package grpool implements a goroutine reusable pool.
Package grpool implements a goroutine reusable pool.
os/gspath
Package gspath implements file index and search for folders.
Package gspath implements file index and search for folders.
os/gtime
Package gtime provides functionality for measuring and displaying time.
Package gtime provides functionality for measuring and displaying time.
os/gtimer
Package gtimer implements Hierarchical Timing Wheel for interval/delayed jobs running and management.
Package gtimer implements Hierarchical Timing Wheel for interval/delayed jobs running and management.
os/gview
Package gview implements a template engine based on text/template.
Package gview implements a template engine based on text/template.
os/gview/internal/text
from golang-1.11.2 1.
from golang-1.11.2 1.
os/gview/internal/text/template
Package template implements data-driven templates for generating textual output.
Package template implements data-driven templates for generating textual output.
os/gview/internal/text/template/parse
Package parse builds parse trees for templates as defined by text/template and html/template.
Package parse builds parse trees for templates as defined by text/template and html/template.
util/gconv
Package gconv implements powerful and easy-to-use converting functionality for any types of variables.
Package gconv implements powerful and easy-to-use converting functionality for any types of variables.
util/gpage
Package gpage provides useful paging functionality for web pages.
Package gpage provides useful paging functionality for web pages.
util/grand
Package grand provides high performance API for random functionality.
Package grand provides high performance API for random functionality.
util/gregex
Package gregex provides high performance API for regular expression functionality.
Package gregex provides high performance API for regular expression functionality.
util/gstr
Package gstr provides useful API for string handling.
Package gstr provides useful API for string handling.
util/gtest
Package gtest provides simple and useful test utils.
Package gtest provides simple and useful test utils.
util/gutil
Package gutil provides some uncategorized util functions.
Package gutil provides some uncategorized util functions.
util/gvalid
Package gvalid implements powerful and useful data/form validation functionality.
Package gvalid implements powerful and useful data/form validation functionality.
geg
net
net/ghttp/server/duplicate
路由重复注册检查 - handler 路由重复注册检查 - controller 路由重复注册检查 - object
路由重复注册检查 - handler 路由重复注册检查 - controller 路由重复注册检查 - object
os
os/gproc
多进程通信示例, 子进程每个1秒向父进程发送当前时间, 父进程监听进程消息,收到后打印到终端。
多进程通信示例, 子进程每个1秒向父进程发送当前时间, 父进程监听进程消息,收到后打印到终端。
third
github.com/BurntSushi/toml
Package toml provides facilities for decoding and encoding TOML configuration files via reflection.
Package toml provides facilities for decoding and encoding TOML configuration files via reflection.
github.com/Shopify/sarama
Package sarama is a pure Go client library for dealing with Apache Kafka (versions 0.8 and later).
Package sarama is a pure Go client library for dealing with Apache Kafka (versions 0.8 and later).
github.com/Shopify/sarama/mocks
Package mocks provides mocks that can be used for testing applications that use Sarama.
Package mocks provides mocks that can be used for testing applications that use Sarama.
github.com/clbanning/mxj
Marshal/Unmarshal XML to/from JSON and map[string]interface{} values, and extract/modify values from maps by key or key-path, including wildcards.
Marshal/Unmarshal XML to/from JSON and map[string]interface{} values, and extract/modify values from maps by key or key-path, including wildcards.
github.com/clbanning/mxj/j2x
j2x.go - For (mostly) backwards compatibility with legacy j2x package.
j2x.go - For (mostly) backwards compatibility with legacy j2x package.
github.com/clbanning/mxj/x2j
x2j - For (mostly) backwards compatibility with legacy x2j package.
x2j - For (mostly) backwards compatibility with legacy x2j package.
github.com/clbanning/mxj/x2j-wrapper
Unmarshal dynamic / arbitrary XML docs and extract values (using wildcards, if necessary).
Unmarshal dynamic / arbitrary XML docs and extract values (using wildcards, if necessary).
github.com/davecgh/go-spew/spew
Package spew implements a deep pretty printer for Go data structures to aid in debugging.
Package spew implements a deep pretty printer for Go data structures to aid in debugging.
github.com/eapache/go-resiliency/batcher
Package batcher implements the batching resiliency pattern for Go.
Package batcher implements the batching resiliency pattern for Go.
github.com/eapache/go-resiliency/breaker
Package breaker implements the circuit-breaker resiliency pattern for Go.
Package breaker implements the circuit-breaker resiliency pattern for Go.
github.com/eapache/go-resiliency/deadline
Package deadline implements the deadline (also known as "timeout") resiliency pattern for Go.
Package deadline implements the deadline (also known as "timeout") resiliency pattern for Go.
github.com/eapache/go-resiliency/retrier
Package retrier implements the "retriable" resiliency pattern for Go.
Package retrier implements the "retriable" resiliency pattern for Go.
github.com/eapache/go-resiliency/semaphore
Package semaphore implements the semaphore resiliency pattern for Go.
Package semaphore implements the semaphore resiliency pattern for Go.
github.com/eapache/queue
Package queue provides a fast, ring-buffer queue based on the version suggested by Dariusz Górecki.
Package queue provides a fast, ring-buffer queue based on the version suggested by Dariusz Górecki.
github.com/fatih/structs
Package structs contains various utilities functions to work with structs.
Package structs contains various utilities functions to work with structs.
github.com/fsnotify/fsnotify
Package fsnotify provides a platform-independent interface for file system notifications.
Package fsnotify provides a platform-independent interface for file system notifications.
github.com/go-sql-driver/mysql
Package mysql provides a MySQL driver for Go's database/sql package.
Package mysql provides a MySQL driver for Go's database/sql package.
github.com/golang/snappy
Package snappy implements the Snappy compression format.
Package snappy implements the Snappy compression format.
github.com/gomodule/redigo/internal/redistest
Package redistest contains utilities for writing Redigo tests.
Package redistest contains utilities for writing Redigo tests.
github.com/gomodule/redigo/redis
Package redis is a client for the Redis database.
Package redis is a client for the Redis database.
github.com/gomodule/redigo/redisx
Package redisx contains experimental features for Redigo.
Package redisx contains experimental features for Redigo.
github.com/gorilla/websocket
Package websocket implements the WebSocket protocol defined in RFC 6455.
Package websocket implements the WebSocket protocol defined in RFC 6455.
github.com/johng-cn/sarama-cluster
Package cluster provides cluster extensions for Sarama, enabing users to consume topics across from multiple, balanced nodes.
Package cluster provides cluster extensions for Sarama, enabing users to consume topics across from multiple, balanced nodes.
github.com/olekukonko/tablewriter
Create & Generate text based table
Create & Generate text based table
github.com/pierrec/lz4
Package lz4 implements reading and writing lz4 compressed data (a frame), as specified in http://fastcompression.blogspot.fr/2013/04/lz4-streaming-format-final.html.
Package lz4 implements reading and writing lz4 compressed data (a frame), as specified in http://fastcompression.blogspot.fr/2013/04/lz4-streaming-format-final.html.
github.com/pierrec/lz4/internal/xxh32
Package xxh32 implements the very fast XXH hashing algorithm (32 bits version).
Package xxh32 implements the very fast XXH hashing algorithm (32 bits version).
github.com/pierrec/lz4/lz4c
Command line utility for the lz4 package.
Command line utility for the lz4 package.
github.com/rcrowley/go-metrics
Go port of Coda Hale's Metrics library <https://github.com/rcrowley/go-metrics> Coda Hale's original work: <https://github.com/codahale/metrics>
Go port of Coda Hale's Metrics library <https://github.com/rcrowley/go-metrics> Coda Hale's original work: <https://github.com/codahale/metrics>
github.com/rcrowley/go-metrics/exp
Hook go-metrics into expvar on any /debug/metrics request, load all vars from the registry into expvar, and execute regular expvar handler
Hook go-metrics into expvar on any /debug/metrics request, load all vars from the registry into expvar, and execute regular expvar handler
github.com/rcrowley/go-metrics/stathat
Metrics output to StatHat.
Metrics output to StatHat.
github.com/theckman/go-flock
Package flock implements a thread-safe sync.Locker interface for file locking.
Package flock implements a thread-safe sync.Locker interface for file locking.
golang.org/x/sys/unix
Package unix contains an interface to the low-level operating system primitives.
Package unix contains an interface to the low-level operating system primitives.
golang.org/x/sys/windows/svc
Package svc provides everything required to build Windows service.
Package svc provides everything required to build Windows service.
golang.org/x/sys/windows/svc/debug
Package debug provides facilities to execute svc.Handler on console.
Package debug provides facilities to execute svc.Handler on console.
golang.org/x/sys/windows/svc/eventlog
Package eventlog implements access to Windows event log.
Package eventlog implements access to Windows event log.
golang.org/x/sys/windows/svc/example
Example service program that beeps.
Example service program that beeps.
golang.org/x/sys/windows/svc/mgr
Package mgr can be used to manage Windows service programs.
Package mgr can be used to manage Windows service programs.
gopkg.in/yaml.v2
Package yaml implements YAML support for the Go language.
Package yaml implements YAML support for the Go language.

Jump to

Keyboard shortcuts

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