Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 25afae5

Browse files
author
mostafa
committed
reflect
1 parent 309c15c commit 25afae5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎advanced/reflect/basic.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
"reflect"
6+
)
7+
8+
// https://golang.org/pkg/reflect/
9+
10+
func main() {
11+
var name string = "kamal"
12+
r := reflect.TypeOf(name)
13+
fmt.Println(r)
14+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /