MCPcopy
hub / github.com/tailscale/golink / linkID

Function linkID

db.go:35–39  ·  view source on GitHub ↗

linkID returns the normalized ID for a link short name.

(short string)

Source from the content-addressed store, hash-verified

33
34// linkID returns the normalized ID for a link short name.
35func linkID(short string) string {
36 id := url.PathEscape(strings.ToLower(short))
37 id = strings.ReplaceAll(id, "-", "")
38 return id
39}
40
41// SQLiteDB stores Links in a SQLite database.
42type SQLiteDB struct {

Callers 6

LoadMethod · 0.85
SaveMethod · 0.85
DeleteMethod · 0.85
LoadStatsMethod · 0.85
SaveStatsMethod · 0.85
DeleteStatsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected