func (t Tables) FindByName(name string) *Table {
	for _, table := range t {
		if table.Name == name {
			return table
		}
	}
	return nil
}
FindByName find a table by its name.
package config
import (
	"errors"
	"fmt"
	"io"
	"strings"
	"github.com/BurntSushi/toml"
	log "github.com/sirupsen/logrus"
	"github.com/spf13/viper"
)
const (
	DefaultConfigFileName = ".klepto.toml"
)
type (
	spec struct {
		Matchers
		Tables
	}
	Matchers map[string]string
	Tables []*Table
	Table struct {
		Name string
		IgnoreData bool
		Filter Filter
		Anonymise map[string]string
		Relationships []*Relationship
	}
	Filter struct {
		Match string
		Limit uint64
		Sorts map[string]string
	}
	Relationship struct {
		Table string
		ForeignKey string
		ReferencedTable string
		ReferencedKey string
	}
)