func ReadConfig(fileName string) (GeneratorConfig, error) {
	f, err := os.Open(fileName)
	if err != nil {
		return nil, fmt.Errorf("opening file failed with: %v ", err)
	}
	cfg, err := ParseConfigFile(f)
	if err != nil {
		return nil, fmt.Errorf("parsing config failed with: %v", err)
	}
	return cfg, nil
}
ReadConfig function reads and parses config file.
package generator
import (
	"fmt"
	"math/rand"
	"os"
	"sync/atomic"
	"github.com/intel-go/nff-go/flow"
	"github.com/intel-go/nff-go/packet"
)
var gen generator
type generator struct {
	count uint64
}
func GetGenerator() *generator {
	return &gen
}
func (g *generator) GetGeneratedNumber() uint64 {
	return atomic.LoadUint64(&(g.count))
}