Skip to content

Commit

Permalink
Group imports everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
lxn committed Jul 24, 2013
1 parent ce93078 commit 123127f
Show file tree
Hide file tree
Showing 48 changed files with 176 additions and 59 deletions.
4 changes: 3 additions & 1 deletion bitmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

func withCompatibleDC(f func(hdc HDC) error) error {
hdc := CreateCompatibleDC(0)
Expand Down
8 changes: 6 additions & 2 deletions boxlayout.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

package walk

import "sort"
import (
"sort"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type Orientation byte

Expand Down
4 changes: 3 additions & 1 deletion brush.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

package walk

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type HatchStyle int

Expand Down
4 changes: 3 additions & 1 deletion button.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

package walk

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type clickable interface {
raiseClicked()
Expand Down
4 changes: 3 additions & 1 deletion canvas.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

// DrawText format flags
type DrawTextFormat uint
Expand Down
4 changes: 3 additions & 1 deletion checkbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

package walk

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type CheckBox struct {
Button
Expand Down
4 changes: 3 additions & 1 deletion combobox.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type ComboBox struct {
WidgetBase
Expand Down
4 changes: 3 additions & 1 deletion commondialogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type FileDialog struct {
Title string
Expand Down
4 changes: 3 additions & 1 deletion composite.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

package walk

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

const compositeWindowClass = `\o/ Walk_Composite_Class \o/`

Expand Down
8 changes: 6 additions & 2 deletions container.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

package walk

import "unsafe"
import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type Margins struct {
HNear, VNear, HFar, VFar int
Expand Down
9 changes: 7 additions & 2 deletions cursor.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@

package walk

import . "github.com/lxn/go-winapi"
import "image"
import (
"image"
)

import (
. "github.com/lxn/go-winapi"
)

type Cursor interface {
Dispose()
Expand Down
4 changes: 3 additions & 1 deletion customwidget.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

package walk

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

const customWidgetWindowClass = `\o/ Walk_CustomWidget_Class \o/`

Expand Down
4 changes: 3 additions & 1 deletion dateedit.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type DateEdit struct {
WidgetBase
Expand Down
4 changes: 3 additions & 1 deletion dialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

const (
DlgCmdNone = 0
Expand Down
4 changes: 3 additions & 1 deletion error.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import (
"runtime/debug"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

var (
logErrors bool
Expand Down
8 changes: 6 additions & 2 deletions font.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

package walk

import "syscall"
import (
"syscall"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type FontStyle byte

Expand Down
4 changes: 3 additions & 1 deletion form.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type CloseReason byte

Expand Down
8 changes: 6 additions & 2 deletions gridlayout.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

package walk

import "sort"
import (
"sort"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type gridLayoutCell struct {
row int
Expand Down
8 changes: 6 additions & 2 deletions groupbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

package walk

import "syscall"
import (
"syscall"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

const groupBoxWindowClass = `\o/ Walk_GroupBox_Class \o/`

Expand Down
4 changes: 3 additions & 1 deletion icon.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import (
"syscall"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

// Icon is a bitmap that supports transparency and combining multiple
// variants of an image in different resolutions.
Expand Down
8 changes: 6 additions & 2 deletions image.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

package walk

import "strings"
import (
"strings"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type Image interface {
draw(hdc HDC, location Point) error
Expand Down
4 changes: 3 additions & 1 deletion imagelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type ImageList struct {
hIml HIMAGELIST
Expand Down
4 changes: 3 additions & 1 deletion label.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

package walk

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type Label struct {
WidgetBase
Expand Down
4 changes: 3 additions & 1 deletion lineedit.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

const (
lineEditMinChars = 10 // number of characters needed to make a LineEdit usable
Expand Down
4 changes: 3 additions & 1 deletion listbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type ListBox struct {
WidgetBase
Expand Down
4 changes: 3 additions & 1 deletion menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type Menu struct {
hMenu HMENU
Expand Down
4 changes: 3 additions & 1 deletion messagebox.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import (
"syscall"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type MsgBoxStyle uint

Expand Down
4 changes: 3 additions & 1 deletion metafile.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type Metafile struct {
hdc HDC
Expand Down
6 changes: 4 additions & 2 deletions notifyicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import (
"unsafe"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

const notifyIconWindowClass = `\o/ Walk_NotifyIcon_Class \o/`

Expand Down Expand Up @@ -151,7 +153,7 @@ func (ni *NotifyIcon) notifyIconData() *NOTIFYICONDATA {
return nid
}

// Dispose releases the operating system resources associated with the
// Dispose releases the operating system resources associated with the
// NotifyIcon.
//
// The associated Icon is not disposed of.
Expand Down
8 changes: 6 additions & 2 deletions path.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@

package walk

import "syscall"
import (
"syscall"
)

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

func knownFolderPath(id CSIDL) (string, error) {
var buf [MAX_PATH]uint16
Expand Down
4 changes: 3 additions & 1 deletion pen.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

package walk

import . "github.com/lxn/go-winapi"
import (
. "github.com/lxn/go-winapi"
)

type PenStyle int

Expand Down
Loading

0 comments on commit 123127f

Please sign in to comment.