func LoadMinTree(r io.Reader) (*MinTree, error) {
	data, err := ioutil.ReadAll(r)
	if err != nil {
		return nil, err
	}

	mt, err := new(mafsa.Decoder).Decode(data)
	if err != nil {
		return nil, err
	}

	return &MinTree{*mt, &MinTreeNode{*mt.Root, rune(0)}}, nil
}
// LoadMinTree loads a MinTree from an io.Reader.
LoadMinTree loads a MinTree from an io.Reader.
// LoadMinTree loads a MinTree from an io . Reader .
func LoadMinTree(r io.Reader) (*MinTree, error) {
	data, err := ioutil.ReadAll(r)
	if err != nil {
		return nil, err
	}
	mt, err := new(mafsa.Decoder).Decode(data)
	if err != nil {
		return nil, err
	}
	return &MinTree{*mt, &MinTreeNode{*mt.Root, rune(0)}}, nil
}
func LoadMinTree ( r io . Reader ) ( * MinTree , error ) { data , err := ioutil . ReadAll ( r ) if err != nil { return nil , err } mt , err := new ( mafsa . Decoder ) . Decode ( data ) if err != nil { return nil , err } return & MinTree { * mt , & MinTreeNode { * mt . Root , rune ( 0 ) } } , nil }
LoadMinTree loads a MinTree from an io.Reader.
LoadMinTree loads a MinTree from an io . Reader .