Working with Embed in Go 1.16 Version

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

WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com
featured
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.
www.influxdata.com
featured
  • go

    The Go programming language

  • https://github.com/golang/go/blob/go1.16beta1/src/cmd/compile/internal/gc/embed.go#L224

  • embed-encrypt

  • You can already do this with a little code generation, see this wrapper I wrote to add encryption to embed, something similar could easily be done I might even add it in the future.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • swaggerui

    Embedded, self-hosted swagger-ui for go servers

  • I would probably put my embed and generate directives in the same file for convenience, then I would write a package main file that does your minification work(if you can). Take a look at what I did here. It’s actually a full binary to download the code, and go generate will call it. In your case, this would be your minifier. You would need to make sure you call “go generate” before “go build” if you’ve made any changes to code that might need minified. Mage might be a good option to help you with this, since, unlike the embed directive, generate directives must be manually called.

  • statigz

    Statigz serves pre-compressed embedded files with http in Go

  • I've made an http file server to serve pre-compressed or decompressed files out of embedded fs based on Accept-Encoding header: https://github.com/vearutop/statigz.

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

  • Microsoft Maintains Go Fork for FIPS 140-2 Support

    5 projects | news.ycombinator.com | 30 Apr 2024
  • How to use Retrieval Augmented Generation (RAG) for Go applications

    3 projects | dev.to | 28 Apr 2024
  • Building a Playful File Locker with GoFr

    4 projects | dev.to | 19 Apr 2024
  • Fastest way to get IPv4 address from string

    1 project | news.ycombinator.com | 14 Apr 2024
  • We now have crypto/rand back ends that ~never fail

    1 project | news.ycombinator.com | 14 Apr 2024