Adding initial scaffolding to rename the repository
Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
parent
c7472582a7
commit
0f880ac1fa
46 changed files with 5707 additions and 674 deletions
25
examples/download_photo.go
Normal file
25
examples/download_photo.go
Normal file
|
@ -0,0 +1,25 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/kris-nova/logger"
|
||||
"os"
|
||||
)
|
||||
|
||||
func halt(code int, msg string){
|
||||
logger.Critical(msg)
|
||||
os.Exit(code)
|
||||
}
|
||||
|
||||
func main() {
|
||||
user := os.Getenv("PHOTOPRISM_USER")
|
||||
if user == "" {
|
||||
halt(1, "Missing PHOTOPRISM_USER")
|
||||
}
|
||||
pass := os.Getenv("PHOTOPRISM_PASS")
|
||||
if pass == "" {
|
||||
halt(2, 'Missing PHOTOPRISM_PASS')
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue