Inspired by tw93/tw93 and matchai/waka-box, I'd like to create a plugin system to auto-update the github profile readme.md
by using kinds of parser
for different data sources like rss
, wakatime
etc.
A parser can parse resourse pointed by source
. source
could be local file path, or a remote API endpoint.
I also implement an axios-like http client for retrieving data from remote RESTful APIs. For the sake of simplicity, I only implement GET and POST.
type Parser interface{
// transform input string
Parse(source string) ([]byte,error)
}
- parser for wakatime stat
- parser for blog rss
- Github workflow