- Atom: JavaScript-based editor from GitHub. Go support at go-plus
- BBedit: commercial text editor for macOS.
- Basic Go support available with the module
- Go-bbpackage with clippings, ctags standard library completion, better syntax highlighting, and tools
- Brackets: a modern, open source text editor that understands web design.
- go-ide Go support with autocompletion through gocode.
- Builder: A toolsmith for GNOME-based applications
- Synatax highlighting and completion build-in.
This file contains 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
// | |
// Source code recreated from a .class file by IntelliJ IDEA | |
// (powered by Fernflower decompiler) | |
// | |
package android; | |
public final class R { | |
public R() { | |
throw new RuntimeException("Stub!"); |
This file contains 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
[ | |
{ | |
"name": "Best midday snacks to kill hunger", | |
"description":"Midday hunger pangs getting the better of you? Keep these healthy snack options handy to avoid binging unhealthy foods.", | |
"image":"http://www.98fit.com/blog/wp-content/uploads/2018/01/The-snackosaur-trial-box.jpg", | |
"URL":"http://www.98fit.com/blog/best-midday-snacks-kill-hunger/" | |
},{ | |
"name": "Best midday snacks to kill hunger", | |
"description":"Midday hunger pangs getting the better of you? Keep these healthy snack options handy to avoid binging unhealthy foods.", |
This file contains 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" | |
//imports the package formatted I/O | |
func main() { | |
//While running the file using go run HelloWorld.go the main function gets called | |
fmt.Println("hello world") | |
//prints the hello World to start with | |
} |
This file contains 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
//We declare variable in Go | |
var variableName dataType | |
//Here firstName is variable of data-type string | |
eg: var firstName string = "Himanshu" | |
// We can define multiple variables with same dataTypes | |
var variableName, variableName, variableName dataType | |
//Here multiple variable are declared of same data-type |
This file contains 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
var variableNameGlobal bool // it global variable | |
var isOn, isOff = true, false // ignores the type of variables | |
func main() { | |
var variableName bool // local variable | |
variableName1 := false // without var and datatype | |
variableName2 = true |
This file contains 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
import( | |
"fmt" | |
) | |
const( | |
variableName1 = 100 | |
variableName2 = 3.1415 | |
variableName3 = "Go_" | |
) |
This file contains 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
open class BitmapUtils { | |
var _view: View? = null | |
var _context: Context? = null | |
constructor(context: Context, view: View) { | |
this._view = view | |
this._context = context | |
} | |
fun convertLayout(): Bitmap { |
This file contains 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
variableName1 := [n]int{n1,n2,n3} // define an int array with n elements | |
variableName2 := [n]int{n1, n2, n3} | |
// define a int array with n elements, of which the first three are assigned. | |
//The rest of them use the default value 0. | |
variableName3 := [...]int{n4, n5, n6} // use `…` to replace the length parameter and Go will calculate it for you. |
This file contains 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 | |
//imported the package fmt | |
import "fmt" | |
func main() { | |
//main function gets called when the program runs | |
// declared the first variable with datatype int | |
var firstNumber int = 10 | |
// declared the second variable without any datatype |