Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xbmlz/ungo
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xbmlz/ungo
- Owner: xbmlz
- License: mit
- Created: 2024-07-11T06:15:34.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-15T09:55:05.000Z (6 months ago)
- Last Synced: 2024-07-16T10:29:52.202Z (6 months ago)
- Language: Go
- Size: 84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ungo
[![Build Status](https://github.com/xbmlz/ungo/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/features/actions)
[![Coverage Status](https://coveralls.io/repos/github/xbmlz/ungo/badge.svg?branch=main)](https://coveralls.io/github/xbmlz/ungo?branch=main)
[![Go Report Card](https://goreportcard.com/badge/github.com/xbmlz/ungo)](https://goreportcard.com/report/github.com/xbmlz/ungo)
[![Go Doc](https://godoc.org/github.com/xbmlz/ungo?status.svg)](https://godoc.org/github.com/xbmlz/ungo)
[![Code Size](https://img.shields.io/github/languages/code-size/xbmlz/ungo.svg?style=flat-square)](https://github.com/xbmlz/ungo)
[![Release](https://img.shields.io/github/release/xbmlz/ungo.svg?style=flat-square)](https://github.com/xbmlz/ungo/releases)Unlock the potential of your golang development journey with UnJS - where innovation meets simplicity, and possibilities become limitless.
## Usage
```go
package mainimport (
"flag""github.com/xbmlz/ungo/cfg"
"github.com/xbmlz/ungo/server"
)var configFile = flag.String("c", "config.yaml", "config file path")
type Config struct {
Server server.Config
}func main() {
flag.Parse()config := &Config{}
cfg.MustLoad(*configFile, config)srv := server.MustNewHTTPServer(config.Server)
srv.Run()
}```