Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmytrodemianchuk/go-desktop
simple go desktop app
https://github.com/dmytrodemianchuk/go-desktop
desktop-app fyne go golang xlsx
Last synced: 1 day ago
JSON representation
simple go desktop app
- Host: GitHub
- URL: https://github.com/dmytrodemianchuk/go-desktop
- Owner: DmytroDemianchuk
- Created: 2023-12-16T17:15:07.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-08T22:19:28.000Z (10 months ago)
- Last Synced: 2024-01-08T23:28:52.122Z (10 months ago)
- Topics: desktop-app, fyne, go, golang, xlsx
- Language: Go
- Homepage:
- Size: 1.21 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Go Desktop App
## Description
Simple application using Fyne to create a GUI interface for opening and displaying the content of an XLSX file in a table format
- Application Initialization: The code initializes a Fyne application and a window titled "Resizable & Movable Table".
- Table Creation: The createTable function generates a Fyne table based on the provided XLSX data, adjusting the column widths and row heights.
- Content Update: The updateContent function creates a new window to display the table content obtained from the XLSX file.
- Open File Functionality: Two buttons (Open File 1 and Open File 2) are provided to select XLSX files. These buttons utilize a file dialog (dialog.ShowFileOpen) to allow users to pick an XLSX file.
- File Reading and Display: When a file is chosen, the code reads the content of the selected XLSX file and updates the content in a new window using the updateContent function.
- Initial Content: The initial content of the main window includes the two "Open File" buttons and a label prompting the user to select an XLSX file.
Overall, this code demonstrates a simple Fyne-based application to open XLSX files and display their content in a resizable and movable table format.
## Prerequisites
- go 1.20
- fyne.io/fyne
- github.com/xuri/excelize/v2## Start
Use `go mod tidy` and `go run main.go`
to build&run project
```
go mod tidy
``````
go run main.go
```## Screenshots
#### The main window in which we open files
![image](../main/assets/desktop_image.png)
#### Windows with open files
![image](../main/assets/excelFiles_image.png)