Anesthesia Dosage CLI (Go)


Author: Moses G. Olson, MD
Copyright © 2020

A Linux/CLI program written in Go. It takes patient weight (kg) and age (years) and prints common anesthesia-related dose estimates, including max-dose caps for several drugs, plus age-adjusted MAC values for sevoflurane, desflurane, and isoflurane using the Mapleson meta-analysis formula.

Educational / historical software only. NOT for clinical use. Always verify doses with current protocols and clinical judgment. This page recreates the 2020 program's calculations for demonstration; it is not a medical device and must not guide patient care.


Source


How to run locally

The original module import path is "anesthesia/aduAnes". Place the sources so that package layout matches that path (e.g. a module named anesthesia with subdirectory aduAnes), then:

go run . <weight_kg> <age_years>
# example:
go run . 70 40

With fewer than two numeric arguments, the program prints a short help / copyright banner and exits.


In-browser runner

Same calculations as main.go (constants, max-dose caps, and MAC formula with coefficient -0.002679). Output mimics the CLI text.

Enter weight and age, then press Calculate.

References

Citations as recorded in the 2020 Go source comments (aduAnes constants and the CLI help text). Listed for historical/educational context; verify current literature independently.


Return to Programming | Return to personal page