Here is the structure of my project.
.
โโโ go.mod
โโโ go.sum
โโโ internal
โย ย โโโ buildinfo
โย ย โย ย โโโ buildinfo.go
โย ย โโโ cli
โย ย โย ย โโโ cli.go
| [Unit] | |
| Description=test | |
| After=network.target | |
| Wants=network.target | |
| [Service] | |
| Type=simple | |
| User=joseph |
Here is the structure of my project.
.
โโโ go.mod
โโโ go.sum
โโโ internal
โย ย โโโ buildinfo
โย ย โย ย โโโ buildinfo.go
โย ย โโโ cli
โย ย โย ย โโโ cli.go
| package main | |
| import ( | |
| "bytes" | |
| "embed" | |
| "html/template" | |
| "github.com/go-chi/chi/v5" | |
| "github.com/joseph0x45/goutils" | |
| ) |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "strconv" | |
| ) | |
| func pigeonAgeToHumanYears(pigeonYears int) int { | |
| if pigeonYears <= 1 { |
Have you ever failed to reach a goal you set? well most likely you have. We are humans after all and failure is built in our
existence. However, we are also different in the way that we deal with such failure, regardless of that difference, I
believe most of us have what I call the mean voice in our head, or have had it. I have it, from time to time, it comes
up to remind me of my failures, to tell me what I could have done better. If you have such a voice in your head, I think it
is a good thing, to some extent. That mean voice could be inner moral or ethical guidance that helps you make positive and righteous decisions, it could also be the result of a toxic relationship you have with yourself. Whether that is a good thing
or not is yours to decide. In this post I want to talk about how I feel about that mean voice, and how I have learned to
bargain with it so that we can both live together in the same body without h
Hello reader, this is the first article of a series where I will be trying to recreate arithmetic operations in binary using C Lets' get into the good stuff.
Well, as I said, arithmetic operations, I will start with integers first, so the goal is to have functions for every operations (addition, division, substraction and multiplication) that would take in 2 integers and return the result of the corresponding operation. The catch is that we are not allowed to use the "built in" arithmetic operations in C, meaning this
int add(int a, int b){