Hello Reader. If you have clicked this you must be excited to know about how to make a Virtual Environment or how to use one for yourself. In this project I have created a basic and simple Virtual Desktop using GO Language and FYNE Module.
GO is a statically typed, compiled programming language designed at Google by Robert Griesemer, Rob Pike, and Ken Thompson. Go is syntactically similar to C, but with memory safety, garbage collection, structural typing, and CSP-style concurrency. The language is often referred to as Golang because of its domain name, golang.org, but the proper name is Go. (Wikipedia)
Fyne is a free and open-source cross-platform widget toolkit for creating graphical user interfaces (GUIs) across desktop and mobile platforms. Fyne uses OpenGL to provide cross-platform graphics. It is inspired by the principles of Material Design to create applications that look and behave consistently across all platforms. It is licensed under the terms of the 3-clause BSD License, supporting the creation of free and proprietary applications. In December 2019 Fyne became the most popular GUI toolkit for Go, by GitHub star count and in early February 2020 it was trending as #1 project in GitHub trending ranks. (Wikipedia)
For using this desktop environment in your PC you need to install the following softwares.
Installing GO and Fyne can be tricky so ensure that you are following the steps as mentioned in the official site.
Now that GO and Fyne are installed in your OS you are ready to build the virtual desktop.
You must be connected to a stable internet connection to build and run the application.
- Download the code and place it in a folder.
- Now open terminal in this folder and execute the following command.
go build main.go calc.go notes.go gallery.go password.go weather.go music.go numbergame.go getTime.go
- After successful execution of the code you will have a executable main file in your folder.
- Open the main executable file and your virtual desktop environment will open.
The applications are made in different files and then their functions are called in main.go file to integrate them into the virtual desktop. The icons used in the main screen are loaded from net and all other images used for app background are included in code folder.
Codes for applications -
- Main File
- Date Time Module
- Calculator
- Notepad
- Gallery
- Weather
- Password Generator
- Music Player
- Number Game
I hope you like this. If you want you can modify or add features in the applications according to your preferences. If you have any query, suggestion, doubts etc., you can contact me on the links given below.