Files
astro/venus/context.go
T

14 lines
427 B
Go
Raw Permalink Normal View History

package venus
import (
"b612.me/astro/internal/ephem"
)
// Venus 指定星历实例的计算模块 / computation module bound to an ephemeris instance.
type Venus struct{ inst *ephem.Instance }
// NewWithInstance 创建指定星历实例的模块,nil 使用全局模型 / create a module; nil uses the global model.
func NewWithInstance(inst *ephem.Instance) *Venus { return &Venus{inst: inst} }
var defaultModule Venus