diff --git a/README b/README index 77deb8c..71ee76e 100644 --- a/README +++ b/README @@ -64,7 +64,6 @@ gobyexample.com signups * environment variables * dns * timers -* url * tty * iota * apps with multiple named binaries @@ -79,6 +78,7 @@ gobyexample.com signups * oauth for google domains * connection pool * typed json parse/unparse +* blackfriday = program ideas command line client for public json api diff --git a/src/xx-url.go b/src/xx-url.go new file mode 100644 index 0000000..05798ed --- /dev/null +++ b/src/xx-url.go @@ -0,0 +1,23 @@ +package main + +import ("fmt"; "net/url"; "strings") + +func main() { + u, err := url.Parse("postgres://user:pass@host.com:5432/path?k=v#frag") + if err != nil { panic(err) } + fmt.Println(u.Scheme) + fmt.Println(u.User) + fmt.Println(u.User.Username()) + p, _ := u.User.Password() + fmt.Println(p) + fmt.Println(u.Host) + split := strings.Split(u.Host, ":") + fmt.Println(split[0]) + fmt.Println(split[1]) + fmt.Println(u.Path) + fmt.Println(u.Fragment) + fmt.Println(u.RawQuery) + m, _ := url.ParseQuery(u.RawQuery) + fmt.Println(m) + fmt.Println(m["k"][0]) +} diff --git a/www/brand.md b/www/brand.md new file mode 100644 index 0000000..47e9d53 --- /dev/null +++ b/www/brand.md @@ -0,0 +1,9 @@ +## brand + +* colors +* font + * monaco + * helvetica neue +* twitter icon + +{ } \ No newline at end of file