New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/lang-library/go-common-file-dialog

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/lang-library/go-common-file-dialog

  • v0.1.2
  • Source
  • Go
  • Socket score

Version published
Created
Source

Common File Dialog bindings for Golang

This library contains bindings for Windows Vista and newer's Common File Dialogs, which is the standard system dialog for selecting files or folders to open or save.

The Common File Dialogs have to be accessed via the COM Interface, normally via C++ or via bindings (like in C#).

This library contains bindings for Golang. It does not require CGO, and contains empty stubs for non-windows platforms (so is safe to compile and run on platforms other than windows, but will just return errors at runtime).

This can be very useful if you want to quickly get a file selector in your Golang application. The cfdutil package contains utility functions with a single call to open and configure a dialog, and then get the result from it. Examples for this are in _examples/usingutil. Or, if you want finer control over the dialog's operation, you can use the base package. Examples for this are in _examples/notusingutil.

This library is available under the MIT license.

Currently supported features:

  • Open File Dialog (to open a single file)
  • Open Multiple Files Dialog (to open multiple files)
  • Open Folder Dialog
  • Save File Dialog
  • Dialog "roles" to allow Windows to remember different "last locations" for different types of dialog
  • Set dialog Title, Default Folder and Initial Folder
  • Set dialog File Filters

FAQs

Package last updated on 26 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc