mirror of
https://github.com/SourceFellows/gobuch.git
synced 2024-10-22 22:05:35 +00:00
15 lines
170 B
Go
15 lines
170 B
Go
|
package main
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func main() {
|
||
|
|
||
|
m := make(map[string]string)
|
||
|
m["key1"] = "value1"
|
||
|
|
||
|
if v, ok := m["key2"]; ok {
|
||
|
fmt.Printf("Wert %v enthalten\n", v)
|
||
|
}
|
||
|
|
||
|
}
|