EVO Framework is a backend development solution designed to facilitate efficient development using the Go programming language. It is built with a focus on modularity and follows the MVC (Model-View-Controller) architectural pattern. The core of EVO Framework is highly extensible, allowing for seamless extension or replacement of its main modules.
- Modularity: EVO Framework promotes modularity, enabling developers to structure their codebase in a modular manner.
- MVC Structure: Following the widely adopted MVC pattern, EVO Framework separates concerns and improves code organization.
- Comprehensive Toolset: EVO Framework provides a rich set of tools, eliminating the need for developers to deal with low-level libraries and technologies.
- Enhanced Readability: By leveraging the EVO Framework, your code becomes more readable and clear, enhancing collaboration and maintainability.
With EVO Framework, you can focus on your programming logic and rapidly develop robust backend solutions without getting bogged down by intricate implementation details.
- Getting Started
- Configuration and Settings
- Database
- Database Migration
- Modules
- Web Server
- Storage Interface
- Cache Interface
- Messaging Bus Interface
- Date
- Internationalization
- TPL Templates
- CURL
- Build
- Args
- Logging
- Concurrency Patterns
- STract configuration language
- Local Files
- Dot Notation
- Reflections
- Validations
- GORM based pagination
EVO Framework includes a comprehensive set of libraries in the lib
directory:
- Application - Application management
- Args - Command-line argument handling
- Async - Asynchronous operations
- Build - Build utilities
- Connectors - External system connectors
- Curl - HTTP client functionality
- Date - Date and time utilities
- DB - Database operations
- Dot - Dot notation for accessing nested data
- Errors - Error handling
- Frm - Form handling
- Generic - Generic data structures
- Gpath - Path manipulation
- Is - Type checking utilities
- JSON - JSON handling
- Log - Logging system
- Memo - Memoization and caching
- Model - Data modeling
- Outcome - Function result handling
- Panics - Panic handling
- Ptr - Pointer utilities
- Pubsub - Publish-subscribe pattern
- Reflections - Reflection utilities
- Scheduler - Task scheduling
- Serializer - Data serialization
- Settings - Configuration management
- Storage - Storage interfaces
- Stract - Structured data handling
- Text - Text manipulation
- Tpl - Template system
- Try - Error handling with try/catch pattern
- Validation - Data validation
- Version - Version management
To get started with EVO Framework, follow these steps:
- Install EVO Framework by running the following command:
$ go get github.com/getevo/evo/v2
- Create Minimum Configuration File
#config.yml
Database:
Cache: "false"
ConnMaxLifTime: 1h
Database: "database"
Debug: "3"
Enabled: "false"
MaxIdleConns: "10"
MaxOpenConns: "100"
Params: ""
Password: "password"
SSLMode: "false"
Server: 127.0.0.1:3306
SlowQueryThreshold: 500ms
Type: mysql
Username: root
HTTP:
BodyLimit: 1kb
CaseSensitive: "false"
CompressedFileSuffix: .evo.gz
Concurrency: "1024"
DisableDefaultContentType: "false"
DisableDefaultDate: "false"
DisableHeaderNormalizing: "false"
DisableKeepalive: "false"
ETag: "false"
GETOnly: "false"
Host: 0.0.0.0
IdleTimeout: "0"
Immutable: "false"
Network: ""
Port: "8080"
Prefork: "false"
ProxyHeader: X-Forwarded-For
ReadBufferSize: 8kb
ReadTimeout: 1s
ReduceMemoryUsage: "false"
ServerHeader: EVO
StrictRouting: "false"
UnescapePath: "false"
EnablePrintRoutes: false
WriteBufferSize: 4kb
WriteTimeout: 5s
- Initialize the EVO Framework and start building your application:
package main
import (
"github.com/getevo/evo/v2"
)
func main() {
// initialize evo
evo.Setup()
//your code goes here ...
evo.Run()
}