class 6 fyne GoLang GUI HYPERLINK


Have you ever link a webiste in your blogpost or MSOFFICE file or HTML page?

This is the same anchor we normally use to link to a site.


[sourcecode lang=”go” autolinks=”false” classname=”myclass” collapse=”false” firstline=”1″ gutter=”true” highlight=”1-3,6,9″ htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false” title=”Source Code main.go”]

package main

// importing fyne
import (


func main() {
// creating new app
a := app.New()
// creating new window
w := a.NewWindow("Here is Hyperlink widget")
w.Resize(fyne.NewSize(400, 400))
// creating url
url, _ := url.Parse("")

// hyperLink Widget
// first value is label
// 2nd value is URL/ website address
hyperlink := widget.NewHyperlink("Visit me", url)

// setup content
w.ShowAndRun() // show and run

[/sourcecode] [easy_media_download url=”” text=”Download Code” color=”red_darker”]

Fyne GoLang GUI Course


Tony BB

TonyBB is a Coach , marketer, hypnotist and a founder of RSKVF Production who specializes in providing simple, affordable, and easy to use solutions for Life.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: