Created
March 8, 2020 00:01
-
-
Save strickyak/c840b10b81c1c9ad55fd621a713fe867 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"path/filepath" | |
) | |
func main() { | |
matches, _ := filepath.Glob("*") | |
for _, s := range matches { | |
for i := 0; i < len(s); i++ { | |
fmt.Printf("(%d)", s[i]) | |
} | |
fmt.Printf("\n") | |
for _, c := range s { | |
fmt.Printf("{%d}", c) | |
} | |
fmt.Printf("\n") | |
} | |
} | |
/* | |
$ cat mkdir255.c | |
#include <stdlib.h> | |
main() { | |
int e = mkdir("\xFF"); | |
exit(e); | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment