bee generate scaffold user -fields="id:int64,name:string,gender:int,age:int" -driver=mysql -conn=":@tcp IP /"
2023-02-22
mysql 语句
create table `user` (
`id` int(11) not null auto_increment,
`name` varchar(255) not null default '',
`gender` tinyint(1) not null default 0,
`age` int(11) not null default 0,
primary key (`id`)
) engine=innodb default charset=utf8;
insert into user values(1,'zhangsan',1,21),(2,'lisi',0,23);
create table `user` (
`id` int(11) not null auto_increment,
`name` varchar(255) not null default '',
`gender` tinyint(1) not null default 0,
`age` int(11) not null default 0,
primary key (`id`)
) engine=innodb default charset=utf8;
insert into user values(1,'zhangsan',1,21),(2,'lisi',0,23);
2022-03-20
①编辑profile文件
vi ~/.bash_profile 或者 vi /etc/profile
②添加
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
③立即生效
source ~/.bash_profile 或者 ...
vi ~/.bash_profile 或者 vi /etc/profile
②添加
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
③立即生效
source ~/.bash_profile 或者 ...
2021-06-10