github.com/ncruces/go-sqlite3@v0.15.1-0.20240520133447-53eef1510ff0/embed/init.go (about)

     1  // Package embed embeds SQLite into your application.
     2  //
     3  // Importing package embed initializes the [sqlite3.Binary] variable
     4  // with an appropriate build of SQLite:
     5  //
     6  //	import _ "github.com/ncruces/go-sqlite3/embed"
     7  package embed
     8  
     9  import (
    10  	_ "embed"
    11  
    12  	"github.com/ncruces/go-sqlite3"
    13  )
    14  
    15  //go:embed sqlite3.wasm
    16  var binary []byte
    17  
    18  func init() {
    19  	sqlite3.Binary = binary
    20  }