V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  not4jerk  ›  全部回复第 1 页 / 共 3 页
回复总数  51
1  2  3  
我之前大部分时间写 golang, 这个星期写 springboot2.16+JPA+Security-JWT 感觉 JAVA 啰嗦, 基础语法学完了 还干不活, 设计模式, 注解 AOP .... 还有一些 JQL 语法 学的东西太多了. 其次运行效率也不好. 建议先难(JAVA) 在易(Go)

这是我的 Springboo2-JPA-Security-JWT RESTful 样板项目 https://github.com/mojocn/springboot2app
2019-11-01 14:36:28 +08:00
回复了 not4jerk 创建的主题 程序员 各位大佬遇到嘴炮架构师和嘴炮开发者,大家如何应对的?
1. 你和他谈`代码`, 他和你谈`解耦`
2. 你和他谈`解耦`, 他和你谈`设计模式`
3. 你和他谈`设计模式`, 他和你谈`架构`
4. 你和他谈`架构`, 他和你谈`高可用`
5. 你和他谈`高可用`, 他和你谈`可扩展`

@KaynW
@Aresxue
@wangyzj

架构师不写代码的... show me the code. 你这不是为难他吗?
2019-10-31 10:01:09 +08:00
回复了 not4jerk 创建的主题 酷工作 [武汉] 奇虎 360 武汉研发中心-前端开发
@510908220 公司邮箱愿意不想透露 [email protected] 也可以,
@Edward1020 不是奇安心 我们是 360 顺便说想一下 朝九完六 弹性半小时上班 发定双休
@JingKeWu MFA 这个不是很好实现 我在国内都安装不了 google authenticator, 如果把 MFA 增加上去预计编译部署的时候会增加难度
2019-10-24 10:09:34 +08:00
回复了 momox 创建的主题 Go 编程语言 goland 里面怎么用 log 输出结构数据
使用 logrus: logrus.WithField("obj",v).Info("my json struct")
@Kv_se7en 非常感谢您我的博客网站的体验反馈, `pjax scrollTop = 0` 这行代码已经添加, js 有缓存, 可能要过段时间.才生效.
2019-10-23 09:58:45 +08:00
回复了 wangyzj 创建的主题 程序员 大家在选择暴露端口号的时候喜欢使用什么骚逻辑?
1111,2222,3333,4444,.... 这就是我的模式
@woniuge 像开发自己的魂斗罗 其实很简单 https://github.com/bfirsh/jsnes

这里有一个我写了一个 3500+Nes 游戏的页面 https://mojotv.cn/misc/games
@superbai
@huiyifyj

vuejs-单页面应用可以参照我之前 写的一篇博客 https://mojotv.cn/2019/07/27/how-to-serve-frontend-code-with-api-in-go
@huiyifyj [https://github.com/mojocn/sshfortress/blob/master/cmd/ginbin.go]( https://github.com/mojocn/sshfortress/blob/master/cmd/ginbin.go)

https://github.com/mojocn/sshfortress/blob/master/felixbin/gin_static.go

前端代码打包成一个`gin middleware`,
```go
//sever static file in http's root path
binStaticMiddleware, err := felixbin.NewGinStaticBinMiddleware("/")
if err != nil {
return err
}
r.Use(binStaticMiddleware)
```

这样前后端就可以放在一个域名不需要 nginx-location 支持, 减少了 options 的请求时间, 如果你要使用你要进行改造.

我写的这个只支持 vuejs-hash 模式, 其他的前端框架没有进行匹配和测试
2019-09-05 13:20:08 +08:00
回复了 252748371 创建的主题 Go 编程语言 gorm 使用原生 sql 如何不定参数查询?
if columen != "" 模式

```go
func (m SshLogQ) Search(u *User) (list *[]SshLog, total uint, err error) {
list = &[]SshLog{}
tx := db.Model(m.SshLog).Preload("User").Preload("Machine")
if m.ClientIp != "" {
tx = tx.Where("client_ip like ?", "%"+m.ClientIp+"%")
}
if m.FromTime != "" && m.ToTime != "" {
tx = tx.Where("`created_at` BETWEEN ? AND ?", m.FromTime, m.ToTime)
}

if u.IsAdmin() {
if m.UserId > 0 {
tx = tx.Where("user_id = ?", m.UserId)
}
if m.MachineId > 0 {
tx = tx.Where("machine_id = ?", m.MachineId)
}
} else {
//非管理员 智能看自己的日志
//不支持搜索搜索
tx = tx.Where("`user_id` = ?", u.Id)
}
total, err = crudAll(&m.PaginationQ, tx, list)
return
}
```
2019-09-04 13:28:11 +08:00
回复了 Captainmiao 创建的主题 程序员 将来我想换专业,程序员门槛好高...
建议从事自己兴趣爱好相关的行业, 数学不好建议不要做编程了
2019-06-11 13:39:13 +08:00
回复了 Bruin 创建的主题 Go 编程语言 求推荐 适合新手学习 golang 开源项目,新手,新手
献丑 推荐自己的项目 https://github.com/dejavuzhou/felix, 代码目录结构简单,

- viper
- cobra
- gin
- gorm
- sqlite
- crypto/ssh
- ...
2019-05-30 17:48:50 +08:00
回复了 not4jerk 创建的主题 Go 编程语言 Go 语言:xterm.js-websocket Web 终端堡垒机
2019-05-28 14:17:40 +08:00
回复了 wensonsmith 创建的主题 远程工作 没想到 9102 年了程序员对远程办公接受度这么低
@poppub 什么公司,求远程工作机会。 我的兴趣就是 coding
2019-05-24 15:32:57 +08:00
回复了 not4jerk 创建的主题 Go 编程语言 SQL+RESTful API Go 脚手架工具
@wsseo 感谢 不过现在有一个问题: go mod 中一个包第三方包版本有问题 https://github.com/ugorji/go/issues/299 导致 ginbro web ui 不能到达最后一步, 但是代码可以生成

```
C:\ginbroRock4>go fmt ./...
build ginbroSon: cannot load github.com/ugorji/go/codec: ambiguous import: found github.com/ugorji/go/codec in multiple modules:
github.com/ugorji/go v1.1.4 (C:\Users\xxx\go\pkg\mod\github.com\ugorji\[email protected]\codec)
github.com/ugorji/go/codec v0.0.0-20181209151446-772ced7fd4c2 (C:\Users\xx\go\pkg\mod\github.com\ugorji\go\[email protected]
d4c2)

```
2019-05-24 09:38:24 +08:00
回复了 not4jerk 创建的主题 Go 编程语言 SQL+RESTful API Go 脚手架工具
@dabaibai 提供命令行工具和 web UI(vuejs + xterm.js)
2019-05-23 20:42:49 +08:00
回复了 not4jerk 创建的主题 Go 编程语言 SQL+RESTful API Go 脚手架工具
@dabaibai

可以通过导入 sql 数据库连接 生成 go 项目的代码

其实我这个开源代码 还包含 ssh 跳板机 ssh 命令行工具, ....
1  2  3  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2910 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms · UTC 07:40 · PVG 15:40 · LAX 00:40 · JFK 03:40
Developed with CodeLauncher
♥ Do have faith in what you're doing.