code: func LoadAliases(dbpath string) (*Aliases, error) {
  	err := os.MkdirAll(path.Dir(dbpath), os.ModePerm)
  	if os.IsNotExist(err) {
  		return nil, err
  	}
  
  	db, err := bolt.Open(dbpath, 0660, nil)
  	if err != nil {
  		return nil, err
  	}
  
  	if err := db.Update(func(tx *bolt.Tx) error {
  		if _, lerr := tx.CreateBucketIfNotExists([]byte(bucketName)); lerr != nil {
  			return lerr
  		}
  		return nil
  	}); err != nil {
  		return nil, err
  	}
  
  	return &Aliases{
  		mtx: &sync.Mutex{},
  		db:  db,
  	}, nil
  }
docs: // LoadAliases fetches a boltDb entity at a given `dbpath`. The db just contains
  // a default bucket called `Aliases` which is where the alias entries are
  // stored.