code: func (db *DB) GetSnapshot() (*Snapshot, error) {
  	if err := db.ok(); err != nil {
  		return nil, err
  	}
  
  	return db.newSnapshot(), nil
  }
docs: // GetSnapshot returns a latest snapshot of the underlying DB. A snapshot
  // is a frozen snapshot of a DB state at a particular point in time. The
  // content of snapshot are guaranteed to be consistent.
  //
  // The snapshot must be released after use, by calling Release method.