openfiledialog

package module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 2 Imported by: 0

README

openfiledialog

golang openfiledialog

一番シンプルな使い方

package main

import (
	"fmt"

	"github.com/Tobotobo/openfiledialog"
)

func main() {
	if filePath, ok := openfiledialog.Show(); ok {
		fmt.Println(filePath)
	}
}

タイトル、フィルター指定

openfiledialog.Title("Excel選択").Filter("Excel(*.xlsx)|(*.xlsx)").Show()

複数選択可

openfiledialog.Mult().Show()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Show

func Show() (filePath string, accepted bool)

Types

type MultOpenFileDialog

type MultOpenFileDialog struct {
	InnerValue multOpenFileDialog
}

func Mult

func Mult() *MultOpenFileDialog

func NewMult

func NewMult() *MultOpenFileDialog

func (*MultOpenFileDialog) Filter

func (dlg *MultOpenFileDialog) Filter(filter string, index ...int) *MultOpenFileDialog

func (*MultOpenFileDialog) InitDirPath

func (dlg *MultOpenFileDialog) InitDirPath(path string) *MultOpenFileDialog

func (*MultOpenFileDialog) Owner

func (dlg *MultOpenFileDialog) Owner(owner win.HWND) *MultOpenFileDialog

func (*MultOpenFileDialog) Show

func (dlg *MultOpenFileDialog) Show() (filePaths []string, accepted bool)

func (*MultOpenFileDialog) Title

func (dlg *MultOpenFileDialog) Title(title string) *MultOpenFileDialog

type OpenFileDialog

type OpenFileDialog struct {
	InnerValue openFileDialog
}

func Filter

func Filter(filter string, index ...int) *OpenFileDialog

func InitDirPath

func InitDirPath(path string) *OpenFileDialog

func InitFilePath

func InitFilePath(path string) *OpenFileDialog

func New

func New() *OpenFileDialog

func Owner

func Owner(owner win.HWND) *OpenFileDialog

func Title

func Title(title string) *OpenFileDialog

func (*OpenFileDialog) Filter

func (dlg *OpenFileDialog) Filter(filter string, index ...int) *OpenFileDialog

func (*OpenFileDialog) InitDirPath

func (dlg *OpenFileDialog) InitDirPath(path string) *OpenFileDialog

func (*OpenFileDialog) InitFilePath

func (dlg *OpenFileDialog) InitFilePath(path string) *OpenFileDialog

func (*OpenFileDialog) Mult

func (dlg *OpenFileDialog) Mult() *MultOpenFileDialog

func (*OpenFileDialog) Owner

func (dlg *OpenFileDialog) Owner(owner win.HWND) *OpenFileDialog

func (*OpenFileDialog) Show

func (dlg *OpenFileDialog) Show() (filePath string, accepted bool)

func (*OpenFileDialog) Title

func (dlg *OpenFileDialog) Title(title string) *OpenFileDialog

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL