Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 387 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 387 Bytes

goco

example


package main

import (
	"log"

	"github.com/lonelymous/goco"
)

type ServerConfig struct {
	Host string
	Port int
	CertFile string
	KeyFile string
}

func main() {
	serverConfig := &ServerConfig{}

	// Setup config
	err := goco.InitializeConfig(serverConfig)
	if err != nil {
		log.Fatalln("error while setup config", err)
	}

	log.Println(serverConfig)

}