摘要:
package lottery import ( "fmt" "math/rand" "sort" "time" ) type Lottery struct { } func NewLottery() *Lottery { return &Lottery{} } type Prize struct 阅读全文
摘要:
package school import "fmt" func init() { fmt.Println("school包初始化了") } type School struct { } func (s *School) PrintSchool() { fmt.Println("我是一所学校") } 阅读全文
摘要:
<html lang="en"> <head> <meta charSet="UTF-8"> <title>Title</title> <style> .cart-list { padding: 4px; } .cart-item { position: relative; width: 100%; 阅读全文
摘要:
参考博客:mac中使用docker搭建kafka集群 创建docker-compose.yml文件,分别是zookeeper、kafka、kafka-manager version: '2' services: kafka1: image: docker.io/wurstmeister/kafka 阅读全文
摘要:
第一种方式: 使用json包 package main import ( "encoding/json" "fmt" "reflect" ) func main() { type User struct { Id int64 `json:"Id"` Name string `json:"Name"` 阅读全文
摘要:
在当前用户目录下编辑 .gitconfig 增加 [alias] st = status co = checkout ci = commit br = branch df = diff 阅读全文
摘要:
m1芯片的电脑 执行以下命令修改权限 sudo chown -R $(whoami) $(brew --prefix)/* 阅读全文
摘要:
git config --list git config --global user.name "Your Name" git config --global user.email "email@example.com" 创建SSH KEY ssh-keygen -t rsa -C "yourema 阅读全文