Finmath package contains routines in Go that can be used for financial calculations. The package contains the implementation for the standard engineering economics functions.
Compound interest is calculated using CompoundInterest function. It can be used for calculating either compound amount (F/P, i, n) or present worth (P/F, i, n).