Skip to content

Commit

Permalink
stub the assetFS method and set uiBuiltIn to false for non-ui builds
Browse files Browse the repository at this point in the history
  • Loading branch information
catsby committed Apr 14, 2021
1 parent 866b19a commit 1085b52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions http/assets.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build ui

package http

import (
Expand Down
3 changes: 3 additions & 0 deletions http/stub_assets.go → http/assets_stub.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
// +build !ui

package http

import (
"net/http"
)

func init() {
// set uiBuiltIn to false to indicate the ui is not built in. See
// http/handler.go
uiBuiltIn = false
}

Expand Down

0 comments on commit 1085b52

Please sign in to comment.