Created
August 11, 2017 03:55
-
-
Save madper/51cb197390a0dece891653ba322f8f0c to your computer and use it in GitHub Desktop.
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" | |
"sync" | |
) | |
type bot_instance struct { | |
running bool | |
deaded bool | |
} | |
type sws struct { | |
sync.Mutex | |
whare map[string]bot_instance | |
} | |
var sw sws | |
func main() { | |
sw.whare["fuck"] = bot_instance{ | |
running: false, | |
deaded: false, | |
} | |
sw.whare["fuck"].deaded = true | |
fmt.Println(sw.whare["fuck"].deaded) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment