func checkEmpty(s []string) bool {
	for _, item := range s {
		if len(item) < 1 {
			return false
		}
	}
	return true
}
This checks a slice to see if anything is empty
package config
import (
	"fmt"
	"log"
	"os"
	"strconv"
	"time"
)
var hostname string
type Config struct {
	GCSBucket              string
	S3Bucket               string
	S3Region               string
	S3AccessKey            string
	S3SecretKey            string
	Hostname               string
	BackupInterval         time.Duration
	TmpDir                 string
	Acceptance             bool
	Version                string
	Encryption             string
	ObjectPrefix           string
	S3ServerSideEncryption string
	S3KmsKeyID             string
}
func init() {
	var err error
	hostname, err = os.Hostname()
	if err != nil {
		log.Fatalf("Unable to determine hostname: %v", err)
	}
}