Skip to content

kyberorg/lazy-gopher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazy Gopher

Go program, that does literally nothing, but runs forever (until stopped).

Why?

  1. Just for fun
  2. Maybe used as docker entrypoint

Usage

Minimal working example

lazy-gopher

As docker entrypoint

CMD ["/lazy-gopher"]

SystemD daemon example

[Unit]
Description=Lazy Gopher

[Service]
Type=simple
Restart=always
RestartSec=5s
ExecStart=/usr/local/bin/lazy-gopher

[Install]
WantedBy=multi-user.target

Build

With make

make binary

Without make

 CGO_ENABLED=0 go build github.com/kyberorg/lazy-gopher/cmd/lazy-gopher

Compress binary

This requires upx

With make

make compress-binary

Without make

upx --brute bin/lazy-gopher