Skip to content
Snippets Groups Projects
Commit 4e569024 authored by Rui Yang's avatar Rui Yang Committed by CI Bot
Browse files

use go 1.16 new package io/fs


Unify the interface for reading web statics. Now it could read an
OS directory or get the content on live

One could use

//go:embed static
var webFiles embed.FS

anywhere and config dex server to take the file system by setting

WebConfig{WebFS: webFiles}

Signed-off-by: default avatarRui Yang <ruiya@vmware.com>
Co-authored-by: default avatarAidan Oldershaw <aoldershaw@pivotal.io>
parent 7b50cbf0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment