urlstat

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 29 Imported by: 0

README

urlstat

urlstat provides basic facility for pv/uv statistic cross websites. It is designed for blog.changkun.de, golang.design/research and etc.

Usage

Plain Mode

Add the following script to a page:

<script async src="//changkun.de/urlstat/client.js"></script>

The script will look for elements with ID urlstat-site-pv, urlstat-site-uv, urlstat-page-pv, and urlstat-page-uv and manipulate the information if the retrieve succeed. For instance:

<span id="urlstat-site-pv"><!-- info will be inserted --></span>
<span id="urlstat-site-uv"><!-- info will be inserted --></span>
<span id="urlstat-page-pv"><!-- info will be inserted --></span>
<span id="urlstat-page-uv"><!-- info will be inserted --></span>

An example, see https://golang.design/research/zero-alloc-call-sched/

image

GitHub Mode

Use query parameter: mode=github and repo=username/reponame. For instance:

![](https://changkun.de/urlstat?mode=github&repo=changkun/urlstat)

License

MIT © 2021 Changkun Ou

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL