Permalink
Browse files

Start of Go lang version.

  • Loading branch information...
1 parent 29e5713 commit e87cdf201f9899a09e2a7b111852140c27775884 @richard-lyman committed Aug 20, 2013
Showing with 95 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +54 −0 LICENSE
  3. +29 −0 README
  4. +2 −0 build.bat
  5. +9 −0 main.go
View
@@ -0,0 +1 @@
+*.exe
View
@@ -0,0 +1,54 @@
+Copyright (c) 2013 Richard B. Lyman <richard.lyman@gmail.com>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+This software also uses the Go language which is under the following license:
+==============================================
+
+Copyright (c) 2012 The Go Authors. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above
+copyright notice, this list of conditions and the following disclaimer
+in the documentation and/or other materials provided with the
+distribution.
+ * Neither the name of Google Inc. nor the names of its
+contributors may be used to endorse or promote products derived from
+this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
View
@@ -0,0 +1,29 @@
+
+== Install Go ==
+ (Make sure you install the same platform of Go as you do of MinGW (32-bit or 64-bit))
+ install go 32 bit (http://code.google.com/p/go/downloads/list?q=OpSys-Windows+Type%3DInstaller)
+ The default should create a dir c:\Go - this is the <GO_INSTALL_DIR>
+
+== Install Go and MinGW (this gets us 'gcc', which we use for sqlite and iup through cgo) ==
+ (Make sure you install the same platform of Go as you do of MinGW (32-bit or 64-bit))
+ install mingw (32 bit is default) (http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/)
+ This is a GUI installer - it's super simple
+ MAKE SURE YOU SELECT TO INSTALL MSYS - whatever else you do, at _least_ also do this
+ The default should create a dir c:\MinGW - this is the <MINGW_INSTALL_DIR>
+ You'll need to add the <MINGW_INSTALL_DIR>/bin folder to the system path
+ Press the keys Win+Pause
+ Click on 'Advanced system settings'
+ Click on 'Environment Variables'
+ Scroll down in the 'System variables' until you see the 'Path' variable
+ Select the 'Path' variable row
+ Click 'Edit'
+ Press the Home key
+ Type 'C:\MinGW\bin;'
+ Click Ok
+ Click Ok
+ Click Ok
+ Close the 'Control Panel Home' window
+
+== Cleaning up after Go ==
+ Sometimes libraries aren't 'cleaned' if the related library source is updated.
+ C:\Go\pkg\windows_386\some\libraries\folder - and delete the *.a file
View
@@ -0,0 +1,2 @@
+go build -o amotoen.exe
+amotoen.exe
View
@@ -0,0 +1,9 @@
+package main
+
+import (
+ "log"
+)
+
+func main() {
+ log.Println("Works!")
+}

0 comments on commit e87cdf2

Please sign in to comment.