code: func (p11w *Pkcs11Wrapper) InitContext() (err error) {
  
  	// check if lib file exists
  	if _, err = os.Stat(p11w.Library.Path); os.IsNotExist(err) {
  		return
  	}
  
  	// try to initialize
  	p11w.Context = pkcs11.New(p11w.Library.Path)
  	err = p11w.Context.Initialize()
  	if err != nil {
  		return
  	}
  
  	// get library info
  	p11w.Library.Info, err = p11w.Context.GetInfo()
  
  	return
  
  }
docs: // Initialize pkcs11 context