c-bata/go-prompt: Building a powerful interactive prompt in Go, inspired by python-prompt-toolkit.
package main

import (

func completer(d prompt.Document) []prompt.Suggest {
s := []prompt.Suggest{
{Text: "users", Description: "Store the username and age"},
{Text: "articles", Description: "Store the article text posted by user"},
{Text: "comments", Description: "Store the text commented to articles"},
return prompt.FilterHasPrefix(s, d.GetWordBeforeCursor(), true)

func main() {
fmt.Println("Please select table.")
t := prompt.Input("> ", completer)
fmt.Println("You selected " + t)
go  prompt  ui 
6 days ago
MeCard - Wikipedia
qr  contact 
6 days ago
Profiling Go ⋆ Mark McDonnell
ackage main

import (

// bigBytes allocates 10 sets of 100 megabytes
func bigBytes() *[]byte {
s := make([]byte, 100000000)
return &s

func main() {
defer pprof.StopCPUProfile()

for i := 0; i < 10; i++ {
s := bigBytes()
if s == nil {
log.Println("oh noes")
go  profile  performance 
4 weeks ago
« earlier      
/. advice agile ai algorithm amazon analysis analytics android api app appengine art bash bayes best big blog book books brain business c c++ cat chart charts chat cheatsheet clojure cloud code comic command course creativity css culture d3 data database deep design development devops dilbert distributed docker dog download ebooks education email erlang error example facebook fast finance firefox flash font food free freelance fun game games git github go google graph guide hackernews hadoop haskell health hebrew history howto html html5 http humor ichc icons image infoq internet interview iphone ipython ir israel java javascript jquery kids la language learn learning life line linux lisp list mac machine management map maps marketing math memory metrics miki-picky misc mit ml money monitoring movie music netflix network news nlp norvig notebook numpy online open pandas parallel pdf performance perl phone photo physics picture pictures presentation process productivity programming psychology python questions quote quotes readme reality-check reddit remote rest restaurant review ruby scheme school science scipy search security server sex sharon shell sklearn slashdot sleep smbc social software song speed stackoverflow startup statistics stock story talk ted test testing text thereifixedit time tips tool tools trading tutorial twitter ui video vim visualization watchlist web webdev wikipedia windows work writing xkcd youtube

Copy this bookmark: