clock

command module
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Clock

GoDoc Go Report Card License

须知少时凌云志 曾许人间第一流

image

🔰 安装

使用 go get 或者直接下载预编译二进制文件 clock/releases

go get -u github.com/chenjiandongx/clock
🔑 配置读取

clock 默认会优先读取下列的环境变量,日期的时间格式为 yyyy-mm-dd

Key Desc Default
CLOCK_WHO 称呼 Coder
CLOCK_BIRTHDAY 你来的日子 1996-04-12
CLOCK_PASS_AWAY 你走的日子 2086-04-12
CLOCK_START_COLOR 渐变起始颜色 #F3C8ED
CLOCK_END_COLOR 渐变终止颜色 #B2F6EF

或者新增 .life_clock 文件,以 yaml 格式配置,读取的优先级如下:

  • 0x00: 读取环境变量
  • 0x01: 读取 clock 程序运行路径下的 .life_clock 文件
  • 0x02: 读取 $HOME/.life_clock 文件
  • 0x03: 读取 /etc/.life_clock 文件

文件默认配置如下:

# .life_clock file

CLOCK_WHO: "Coder"
CLOCK_BIRTHDAY: "1996-04-12"
CLOCK_PASS_AWAY: "2086-04-12"
CLOCK_START_COLOR: "#F3C8ED"
CLOCK_END_COLOR: "#B2F6EF" 
🤔 人生阿!

真正的勇士敢于直面赤裸裸的人生和血淋淋的事实 -- dongdong

短短这一生

https://user-images.githubusercontent.com/19553554/143770322-01bbb073-4fc7-414d-bae6-01131cebb387.mov

👏 Contributors
🔖 License

MIT ©chenjiandongx

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
⌂ 换网址