Tag library

5 bookmarks have this tag.

2025-12-30

2054.

alecthomas/participle: A parser library for Go

github.com/alecthomas/participle
type INI struct {
  Properties []*Property `@@*`
  Sections   []*Section  `@@*`
}

type Section struct {
  Identifier string      `"[" @Ident "]"`
  Properties []*Property `@@*`
}

type Property struct {
  Key   string `@Ident "="`
  Value *Value `@@`
}

type Value struct {
  String *string  `  @String`
  Float *float64  `| @Float`
  Int    *int     `| @Int`
}

2024-09-02

1486.

go-shiori/obelisk: Go package and CLI tool for saving web page as single HTML file

github.com/go-shiori/obelisk
  • Embeds all resources (e.g. CSS, image, JavaScript, etc) producing a single HTML5 document that is easy to store and share.

  • In case the submitted URL is not HTML (for example a PDF page), Obelisk will still save it as it is.

  • Downloading each assets are done concurrently, which make the archival process for a web page is quite fast.

  • Accepts cookies, useful for pages that need login or article behind paywall.

Might actually be a good choice for Betula archival. Might need to fork it, though.

2024-09-01

1480.

erkkah/tigr: TIGR - the TIny GRaphics library for Windows, macOS, Linux, iOS and Android.

github.com/erkkah/tigr

TIGR - the TIny GRaphics library for Windows, macOS, Linux, iOS and Android. - erkkah/tigr

2024-06-07

1297.

— Urwid 2.6.13

urwid.org/index.html

2024-04-20

1230.

Introduction | templ docs

templ.guide
package main

templ Hello(name string){
<div>Hello, { name }</div>
}

templ Greeting(person Person){
<div class="greeting">
@Hello(person.Name)
</div>
}