data/settings.go
func ReadSetting(db *reform.Querier, key string) (string, error) {
	var st Setting
	if err := FindByPrimaryKeyTo(db, &st, key); err != nil {
		return "", fmt.Errorf(
			"failed to find '%s' setting: %s", key, err)
	}
	return st.Value, nil
}
func ReadSetting(db *reform.Querier, key string) (string, error) {
	var st Setting
	if err := FindByPrimaryKeyTo(db, &st, key); err != nil {
		return "", fmt.Errorf(
			"failed to find '%s' setting: %s", key, err)
	}
	return st.Value, nil
}
func ReadSetting ( db * reform . Querier , key string ) ( string , error ) { var st Setting if err := FindByPrimaryKeyTo ( db , & st , key ) ; err != nil { return " " , fmt . Errorf ( " " , key , err ) } return st . Value , nil }
// ReadSetting reads value of a given setting.
ReadSetting reads value of a given setting .