rename mod

This commit is contained in:
Alexander NeonXP Kiryukhin 2024-07-31 22:38:08 +03:00
parent a668e1b0a0
commit eae5a517c8
Signed by: NeonXP
GPG key ID: 35E33E1AB7776B39
17 changed files with 21 additions and 21 deletions

View file

@ -2,7 +2,7 @@
[![Go Bluetooth](./images/gobluetooth.png)](https://tinygo.org/bluetooth) [![Go Bluetooth](./images/gobluetooth.png)](https://tinygo.org/bluetooth)
[![PkgGoDev](https://pkg.go.dev/badge/pkg.go.dev/tinygo.org/x/bluetooth)](https://pkg.go.dev/tinygo.org/x/bluetooth) [![Linux](https://github.com/tinygo-org/bluetooth/actions/workflows/linux.yml/badge.svg?branch=dev)](https://github.com/tinygo-org/bluetooth/actions/workflows/linux.yml) [![macOS](https://github.com/tinygo-org/bluetooth/actions/workflows/macos.yml/badge.svg?branch=dev)](https://github.com/tinygo-org/bluetooth/actions/workflows/macos.yml) [![PkgGoDev](https://pkg.go.dev/badge/pkg.go.dev/gitrepo.ru/neonxp/bluetooth)](https://pkg.go.dev/gitrepo.ru/neonxp/bluetooth) [![Linux](https://github.com/tinygo-org/bluetooth/actions/workflows/linux.yml/badge.svg?branch=dev)](https://github.com/tinygo-org/bluetooth/actions/workflows/linux.yml) [![macOS](https://github.com/tinygo-org/bluetooth/actions/workflows/macos.yml/badge.svg?branch=dev)](https://github.com/tinygo-org/bluetooth/actions/workflows/macos.yml)
Go Bluetooth is a cross-platform package for using [Bluetooth Low Energy](https://en.wikipedia.org/wiki/Bluetooth_Low_Energy) hardware from the Go programming language. Go Bluetooth is a cross-platform package for using [Bluetooth Low Energy](https://en.wikipedia.org/wiki/Bluetooth_Low_Energy) hardware from the Go programming language.
@ -22,7 +22,7 @@ This example shows a central that scans for peripheral devices and then displays
package main package main
import ( import (
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
) )
var adapter = bluetooth.DefaultAdapter var adapter = bluetooth.DefaultAdapter
@ -58,7 +58,7 @@ package main
import ( import (
"time" "time"
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
) )
var adapter = bluetooth.DefaultAdapter var adapter = bluetooth.DefaultAdapter

View file

@ -5,4 +5,4 @@
// those produced by Nordic Semiconductor. // those produced by Nordic Semiconductor.
// //
// This package can be use to create Bluetooth Low Energy centrals as well as peripherals. // This package can be use to create Bluetooth Low Energy centrals as well as peripherals.
package bluetooth // import "tinygo.org/x/bluetooth" package bluetooth // import "gitrepo.ru/neonxp/bluetooth"

View file

@ -3,7 +3,7 @@ package main
import ( import (
"time" "time"
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
) )
var adapter = bluetooth.DefaultAdapter var adapter = bluetooth.DefaultAdapter

View file

@ -8,7 +8,7 @@ import (
"machine" "machine"
"time" "time"
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
"tinygo.org/x/drivers/ws2812" "tinygo.org/x/drivers/ws2812"
) )

View file

@ -12,7 +12,7 @@ package main
import ( import (
"time" "time"
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
) )
var ( var (

View file

@ -18,7 +18,7 @@ package main
import ( import (
"strconv" "strconv"
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
) )
var adapter = bluetooth.DefaultAdapter var adapter = bluetooth.DefaultAdapter

View file

@ -24,7 +24,7 @@
package main package main
import ( import (
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
) )
var ( var (

View file

@ -4,7 +4,7 @@ import (
"math/rand" "math/rand"
"time" "time"
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
) )
var adapter = bluetooth.DefaultAdapter var adapter = bluetooth.DefaultAdapter

View file

@ -4,7 +4,7 @@ import (
"machine" "machine"
"time" "time"
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
) )
var adapter = bluetooth.DefaultAdapter var adapter = bluetooth.DefaultAdapter

View file

@ -4,8 +4,8 @@ package main
// details. // details.
import ( import (
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
"tinygo.org/x/bluetooth/rawterm" "gitrepo.ru/neonxp/bluetooth/rawterm"
) )
var ( var (

View file

@ -8,8 +8,8 @@ package main
// Code to interact with a raw terminal is in separate files with build tags. // Code to interact with a raw terminal is in separate files with build tags.
import ( import (
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
"tinygo.org/x/bluetooth/rawterm" "gitrepo.ru/neonxp/bluetooth/rawterm"
) )
var ( var (

View file

@ -1,7 +1,7 @@
package main package main
import ( import (
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
) )
var adapter = bluetooth.DefaultAdapter var adapter = bluetooth.DefaultAdapter

View file

@ -7,7 +7,7 @@ package main
import ( import (
"time" "time"
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
) )
var adapter = bluetooth.DefaultAdapter var adapter = bluetooth.DefaultAdapter

View file

@ -5,7 +5,7 @@ import (
"image/color" "image/color"
"time" "time"
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
"tinygo.org/x/tinyterm" "tinygo.org/x/tinyterm"
) )

2
go.mod
View file

@ -1,4 +1,4 @@
module tinygo.org/x/bluetooth module gitrepo.ru/neonxp/bluetooth
go 1.20 go 1.20

View file

@ -16,7 +16,7 @@ import (
"golang.org/x/text/cases" "golang.org/x/text/cases"
"golang.org/x/text/language" "golang.org/x/text/language"
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
) )
type Characteristic struct { type Characteristic struct {

View file

@ -16,7 +16,7 @@ import (
"golang.org/x/text/cases" "golang.org/x/text/cases"
"golang.org/x/text/language" "golang.org/x/text/language"
"tinygo.org/x/bluetooth" "gitrepo.ru/neonxp/bluetooth"
) )
type Service struct { type Service struct {