Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/hokamsingh/lessgo
Browse files Browse the repository at this point in the history
  • Loading branch information
hokamsingh committed Sep 3, 2024
2 parents f67c69e + 4e2890f commit 074add3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,9 @@ docker-compose.yml
.air.toml

#makefile
Makefile
Makefile

*.crt
*.csr
*.key
*.pem
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
![License](https://img.shields.io/badge/license-MIT-green.svg)
[![Go Reference](https://pkg.go.dev/badge/github.com/hokamsingh/lessgo)](https://pkg.go.dev/github.com/hokamsingh/lessgo)
[![Go Version](https://img.shields.io/github/go-mod/go-version/hokamsingh/lessgo-cli)](https://golang.org/dl/)
![Version](https://img.shields.io/badge/version-v1.0.2-blue)
![Version](https://img.shields.io/badge/version-v1.0.4-blue)
[![Go Report Card](https://goreportcard.com/badge/github.com/hokamsingh/lessgo)](https://goreportcard.com/report/github.com/hokamsingh/lessgo)

**🚀 LessGo v1.0.2 - The High-Performance Minimal Go Web Framework**
**🚀 LessGo v1.0.4 - The High-Performance Minimal Go Web Framework**

Welcome to **LessGo** ⚡—a high-performance, minimal Go web framework crafted for building scalable, maintainable, and modern applications. LessGo empowers developers with advanced features like dynamic configuration management, inbuilt error handling, robust data validation, and Dependency Injection (DI).

Expand Down
1 change: 0 additions & 1 deletion internal/core/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ func (r *Router) Start(addr string, httpConfig *config.HttpConfig) error {
// Set maximum header size
MaxHeaderBytes: httpConfig.MaxHeaderSize,
}

// Configure TLS if certificates are provided
if httpConfig.TLSCertFile != "" && httpConfig.TLSKeyFile != "" {
server.TLSConfig = &tls.Config{
Expand Down
2 changes: 1 addition & 1 deletion pkg/lessgo/less.go
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ type HttpConfig = config.HttpConfig
// - WithWriteTimeout
// - WithTLSCertFile
func NewHttpConfig(options ...func(*config.HttpConfig)) *config.HttpConfig {
return config.NewHttpConfig()
return config.NewHttpConfig(options...)
}

func WithReadTimeout(timeout int) func(*config.HttpConfig) {
Expand Down

0 comments on commit 074add3

Please sign in to comment.