func (s *StaticPeers) Peers() ([]net.Addr, error) {
	s.l.Lock()
	peers := s.StaticPeers
	s.l.Unlock()
	return peers, nil
}
Peers implements the PeerStore interface.
package raft
import (
	"bytes"
	"encoding/json"
	"io/ioutil"
	"net"
	"os"
	"path/filepath"
	"sync"
)
const (
	jsonPeerPath = "peers.json"
)
type PeerStore interface {
	Peers() ([]net.Addr, error)
	SetPeers([]net.Addr) error
}
type StaticPeers struct {
	StaticPeers []net.Addr
	l           sync.Mutex
}