aboutsummaryrefslogtreecommitdiffstats
path: root/win/win.go
diff options
context:
space:
mode:
author8o7wer <8o7wermobile@gmail.com>2019-05-20 20:41:00 -0800
committer8o7wer <8o7wermobile@gmail.com>2019-05-20 20:41:00 -0800
commit101b8b1005041de522252306465b534c37576403 (patch)
treec3c377df220a044a1b9ce0f8c9518732b7718432 /win/win.go
parentee835029b4c84dfb868dc70b4e31003dec0033f2 (diff)
downloadgui-101b8b1005041de522252306465b534c37576403.zip
fixed formatting
Diffstat (limited to 'win/win.go')
-rw-r--r--win/win.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/win/win.go b/win/win.go
index 3a06ea9..1741549 100644
--- a/win/win.go
+++ b/win/win.go
@@ -46,14 +46,14 @@ func Resizable() Option {
}
}
-//Borderless option makes the window borderless
+// Borderless option makes the window borderless.
func Borderless() Option {
return func(o *options) {
o.borderless = true
}
}
-//Maximized option makes the window start maximized
+// Maximized option makes the window start maximized.
func Maximized() Option {
return func(o *options) {
o.maximized = true
@@ -65,12 +65,12 @@ func Maximized() Option {
// The default title is empty and the default size is 640x480.
func New(opts ...Option) (*Win, error) {
o := options{
- title: "",
- width: 640,
- height: 480,
- resizable: false,
+ title: "",
+ width: 640,
+ height: 480,
+ resizable: false,
borderless: false,
- maximized: false,
+ maximized: false,
}
for _, opt := range opts {
opt(&o)