https://github.com/ugjka/ircmsg
IRC Message Parser
https://github.com/ugjka/ircmsg
irc message parser
Last synced: 5 months ago
JSON representation
IRC Message Parser
- Host: GitHub
- URL: https://github.com/ugjka/ircmsg
- Owner: ugjka
- License: other
- Created: 2020-08-24T13:15:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-09T14:21:08.000Z (about 3 years ago)
- Last Synced: 2023-07-27T22:44:05.186Z (almost 3 years ago)
- Topics: irc, message, parser
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go **IRC** message parser package
[](https://godoc.org/github.com/ugjka/ircmsg)
## Message
The [Message][] and [Prefix][] types provide translation to and from IRC message format.
```go
// Parse the IRC-encoded data and stores the result in a new struct.
message := ircmsg.ParseMessage(raw)
// Returns the IRC encoding of the message.
raw = message.String()
```
[message]: https://godoc.org/github.com/ugjka/ircmsg#Message "Message type documentation"
[prefix]: https://godoc.org/github.com/ugjka/ircmsg#Prefix "Prefix type documentation"
## Warning
We are at v0.0.X, the API is subject to change
## Original source
[https://github.com/sorcix/irc](https://github.com/sorcix/irc)