Back to godoc.org

Package config

v0.0.0-...-9a57fd0
Latest Go to latest

The highest tagged major version is .

Published: Mar 18, 2020 | License: Apache-2.0 | Module: github.com/bridgewwater/temp-go-cron

Index

func BaseURL

func BaseURL() string

func Init

func Init(cfg string) error

read default config by conf/config.yaml can change by CLI by `-c` this config can config by ENV

ENV_CRON_HTTPS_ENABLE=false
ENV_AUTO_HOST=true
ENV_CRON_HOST 127.0.0.1:8000

func Sugar

func Sugar() *zap.SugaredLogger

type BaseConf

type BaseConf struct {
	BaseURL   string
	SSLEnable bool
}

type Config

type Config struct {
	Name string
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier