foomo / simplecert

golang autocert library for letsencrypt
MIT License
212 stars 34 forks source link

example errors #7

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi,

Hope you are all well !

Examples are failing as the following error is triggered:

# command-line-arguments
./simplecert.go:34:38: not enough arguments in call to simplecert.Init
    have (*simplecert.Config)
    want (*simplecert.Config, func())

Any way to update to them ?

Cheers, X

ernsheong commented 4 years ago

You can just do this for now:

certReloader, err := simplecert.Init(cfg, nil)
ghost commented 4 years ago

yeah, that's what I did but the README needs to be fixed also

dreadl0ck commented 4 years ago

Hi, thanks for the heads up, fixed with commit e438243.