### Get SwEphGo Package Source: https://github.com/mshafiee/swephgo/blob/main/README.md Install the SwEphGo Go package using the go get command. ```shell $ go get github.com/mshafiee/swephgo ``` -------------------------------- ### Install Swiss Ephemeris Shared Library Source: https://github.com/mshafiee/swephgo/blob/main/README.md Copy the compiled shared library to the system's library path. ```shell $ cp libswe.so /usr/local/lib/ ``` -------------------------------- ### Get Swiss Ephemeris Library Version Source: https://github.com/mshafiee/swephgo/blob/main/README.md Use the Version function from the swephgo package to retrieve and print the Swiss Ephemeris library version. ```go package main import ( "fmt" "github.com/mshafiee/swephgo" ) func main() { sweVer := make([]byte, 12) swephgo.Version(sweVer) fmt.Printf("Library used: Swiss Ephemeris v%s\n", sweVer) } ``` -------------------------------- ### Run Go Program Source: https://github.com/mshafiee/swephgo/blob/main/README.md Execute a Go program that uses the swephgo package. ```shell $ go run main.go ``` -------------------------------- ### Expected Output for Version Check Source: https://github.com/mshafiee/swephgo/blob/main/README.md The output displayed after running the Go program to check the Swiss Ephemeris library version. ```text Library used: Swiss Ephemeris v2.10.03 ``` -------------------------------- ### Compile Swiss Ephemeris Library Source: https://github.com/mshafiee/swephgo/blob/main/README.md Modify the Makefile to include necessary linker flags for compiling the Swiss Ephemeris C library. ```makefile libswe.so: $(SWEOBJ) $(CC) -shared -o libswe.so $(SWEOBJ) -lm -ldl ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.