Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GaleneのGo製ライブラリでtext chatを保存

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

GaleneのGo製ライブラリでtext chatを保存

Avatar for Kenichiro MATOHARA

Kenichiro MATOHARA

June 15, 2025
Tweet

More Decks by Kenichiro MATOHARA

Other Decks in Technology

Transcript

  1. Galene videoconference server [Galene] ANNOUNCE: Galene client library for Go

    gclient package - github.com/jech/gclient - Go Packages jech/gclient: Client library for the Galene videoconference server 5
  2. exampleのchat.go example以下を見るとchat.goというものがあります.このまま使え そうです. $ go build examples/chat/chat.go $ ./chat Usage:

    ./chat group -debug enable protocol logging -insecure don't check server certificates -password password password to use for login -username username username to use for login (default "chat-example") 7
  3. chat送受信 Galeneのgroup urlを指定して実行することでテキストチャットの送 受信ができた. 1 Galeneのgroup urlを指定して実行. 2 Galeneのテキストチャットがリアルタイムに表示される. 3

    terminalからchatを送信. $ ./chat https://www.kagolug.org:8443/group/test/ user: hello world! user: 日本語 user: 絵文字 🐈 hello chat-example: hello ^C 1 2 3 9
  4. タイムスタンプも付ける いい感じそうですがタイムスタンプも欲しいです. $ git diff examples/chat/chat.go diff --git a/examples/chat/chat.go b/examples/chat/chat.go

    index 8c9211b..d2a637e 100644 --- a/examples/chat/chat.go +++ b/examples/chat/chat.go @@ -107,11 +107,11 @@ outer: fmt.Printf("* %v %v\n", e.Username, e.Value, ) - } else if e.Username == "" { - fmt.Printf("%v\n", e.Value) +// } else if e.Username == "" { +// fmt.Printf("%v\n", e.Value) } else { - fmt.Printf("%v: %v\n", - e.Username, e.Value, + fmt.Printf("%v %v: %v\n", + e.Time, e.Username, e.Value, ) } 11
  5. $ go run examples/chat/chat.go https://www.kagolug.org:8443/group/test/ 2025-06-03T05:16:04+09:00 user: hello world! 2025-06-03T05:18:12+09:00

    user: 日本語 2025-06-03T05:18:33+09:00 user: 絵文字 🐈 2025-06-03T05:18:45+09:00 chat-example: hello 12
  6. 13

  7. 奥付 発表 2025-06- 15(sun) 発表者 利用ソフトウェア NeoVim + textlint +

    ライセンス 鹿児島Linux勉強会 2025.06(オンライン開催) Kenichiro Matohara(matoken) Asciidoctor Reveal.js CC BY 4.0 15