format code & add additional assets
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
_ "embed"
|
||||
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
|
||||
"encoding/base64"
|
||||
"github.com/diamondburned/gotk4/pkg/gdk/v4"
|
||||
"github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
|
||||
)
|
||||
|
||||
//go:embed debug.png
|
||||
@@ -87,7 +87,6 @@ var connectB64 string = base64.StdEncoding.EncodeToString(connectBytes)
|
||||
var commentBytes []byte
|
||||
var commentB64 string = base64.StdEncoding.EncodeToString(commentBytes)
|
||||
|
||||
|
||||
//go:embed assets/information.png
|
||||
var informationBytes []byte
|
||||
var informationB64 string = base64.StdEncoding.EncodeToString(informationBytes)
|
||||
@@ -245,7 +244,6 @@ func init() {
|
||||
|
||||
clientAssets["connect"] = gdk.NewTextureForPixbuf(loader.Pixbuf())
|
||||
|
||||
|
||||
loader = gdkpixbuf.NewPixbufLoader()
|
||||
|
||||
commentData, _ := base64.StdEncoding.DecodeString(commentB64)
|
||||
@@ -254,7 +252,6 @@ func init() {
|
||||
|
||||
clientAssets["comment"] = gdk.NewTextureForPixbuf(loader.Pixbuf())
|
||||
|
||||
|
||||
loader = gdkpixbuf.NewPixbufLoader()
|
||||
|
||||
informationData, _ := base64.StdEncoding.DecodeString(informationB64)
|
||||
|
||||
BIN
assets/information.png
Normal file
BIN
assets/information.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 778 B |
BIN
assets/jabber.png
Normal file
BIN
assets/jabber.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 730 B |
2
main.go
2
main.go
@@ -25,8 +25,8 @@ import (
|
||||
_ "embed"
|
||||
"encoding/xml"
|
||||
"github.com/kr/pretty"
|
||||
"runtime"
|
||||
"io"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
var loadedConfig lambdaConfig
|
||||
|
||||
@@ -14,7 +14,6 @@ type ReceivedCarbon struct {
|
||||
Forwarded stanza.Forwarded
|
||||
}
|
||||
|
||||
|
||||
type SentCarbon struct {
|
||||
stanza.MsgExtension
|
||||
XMLName xml.Name `xml:"urn:xmpp:carbons:2 sent"`
|
||||
|
||||
Reference in New Issue
Block a user