Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewReplacer (0.08 sec)

  1. src/cmd/api/main_test.go

    // be read as if they said fs.FileInfo, since os.FileInfo is now an alias.
    // If there are many of these, we could do a more general solution,
    // but for now the replacer is fine.
    var aliasReplacer = strings.NewReplacer(
    	"os.FileInfo", "fs.FileInfo",
    	"os.FileMode", "fs.FileMode",
    	"os.PathError", "fs.PathError",
    )
    
    func fileFeatures(filename string, needApproval bool) []string {
    	bs, err := os.ReadFile(filename)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 31.4K bytes
    - Viewed (0)
Back to top