io/input,io/router: [API] rename package io/router to io/input

The input name better matches its purpose, in particular when we
introduce input.Source.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2023-10-08 17:45:39 -05:00
parent 99399184ac
commit d5a0d2cf60
19 changed files with 74 additions and 72 deletions
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Unlicense OR MIT
package router
package input
import (
"gioui.org/io/event"
@@ -1,4 +1,6 @@
package router
// SPDX-License-Identifier: Unlicense OR MIT
package input
import (
"testing"
+1 -1
View File
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Unlicense OR MIT
package router
package input
import (
"image"
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Unlicense OR MIT
package router
package input
import (
"image"
+1 -1
View File
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Unlicense OR MIT
package router
package input
import (
"image"
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Unlicense OR MIT
package router
package input
import (
"fmt"
+3 -3
View File
@@ -1,14 +1,14 @@
// SPDX-License-Identifier: Unlicense OR MIT
/*
Package router implements Router, a event.Queue implementation
that that disambiguates and routes events to handlers declared
Package input implements Router, an event.Queue implementation
that disambiguates and routes events to handlers declared
in operation lists.
Router is used by app.Window and is otherwise only useful for
using Gio with external window implementations.
*/
package router
package input
import (
"encoding/binary"
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Unlicense OR MIT
package router
package input
import (
"fmt"