Skip to content

Instantly share code, notes, and snippets.

@changtimwu
Created August 14, 2014 03:16
Show Gist options
  • Save changtimwu/6b7de299655a33ddd4ee to your computer and use it in GitHub Desktop.
Save changtimwu/6b7de299655a33ddd4ee to your computer and use it in GitHub Desktop.
Porting CLI from NodeJS to GO
@changtimwu
Copy link
Author

clip of cli.coffee

_ = require 'underscore'
_.mixin( require 'underscore.string')                                                        
_.mixin( require './mycommon')                                                               
yaml = require 'yamljs'                                                                      
fs= require 'fs'                                                                             
net = require("net")                                                                         
Agent = require("smith").Agent                                                               
readline = require("readline")                                                               
tty = require("tty")   

@changtimwu
Copy link
Author

  • motto can interpret the following
    • underscore
    • underscore.string
    • yamljs -- probably
  • wait for nodego or done through GO
    • fs
    • net
  • must done in GO
    • readline
    • tty
  • has been done in GO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment