Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fs (0.13 sec)

  1. manifests/manifest.go

    package manifests
    
    import (
    	"embed"
    	"io/fs"
    	"os"
    )
    
    // FS embeds the manifests
    //
    //go:embed all:charts/* profiles/*
    var FS embed.FS
    
    // BuiltinOrDir returns a FS for the provided directory. If no directory is passed, the compiled in
    // FS will be used
    func BuiltinOrDir(dir string) fs.FS {
    	if dir == "" {
    		return FS
    	}
    	return os.DirFS(dir)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 15 02:30:16 GMT 2023
    - 935 bytes
    - Viewed (0)
Back to top