Can Go dynamically load library module at runtime?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • go-plugin

    Golang plugin system over RPC.

  • purego

    I think that is what Ebitenengine is trying to create in https://github.com/ebitengine/purego, currently, they are focused on the darwin platform. I believe the original idea is from https://github.com/notti/nocgo. Basically what we need is `dlopen` in pure Go, on Windows that is a no-brainer because the call is in the kernel itself.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • nocgo

    dlopen in go without cgo

    I think that is what Ebitenengine is trying to create in https://github.com/ebitengine/purego, currently, they are focused on the darwin platform. I believe the original idea is from https://github.com/notti/nocgo. Basically what we need is `dlopen` in pure Go, on Windows that is a no-brainer because the call is in the kernel itself.

  • goloader

    load and run golang code at runtime. (WARNING: this repo has not been maintained for a long time, please take a look at https://github.com/pkujhd/goloader)

    Also I just searched a library goloader, it runs go code at runtime https://github.com/dearplain/goloader tho wouldn’t recommend for production

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts