Skip to content

Instantly share code, notes, and snippets.

@Agilulfe
Created August 21, 2020 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Agilulfe/b16b54a99968bb878059a566a8928280 to your computer and use it in GitHub Desktop.
Save Agilulfe/b16b54a99968bb878059a566a8928280 to your computer and use it in GitHub Desktop.
TypeOf with Go
package main
import (
"fmt"
"reflect"
)
func main() {
fmt.Println(reflect.TypeOf(5))
fmt.Println(reflect.TypeOf(5.0))
fmt.Println(reflect.TypeOf(5 + 5.0))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment