dyweb / weekly

DevComm-Shanghai Weekly 上海地区高校技术社团联合周报(欢迎投稿)
https://dyweb-weekly.netlify.com/
65 stars 5 forks source link

Weekly-247 #286

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 2 years ago

联合周报第 247 期开始投稿 :tada:

at15 commented 2 years ago

TIL https://github.com/apache/bahir-flink extension for flink (there is also extension for spark ....

at15 commented 2 years ago

TIL you can write var foo struct { a int } in go ... @gaocegege

https://github.com/c-bata/go-prompt/blob/82a912274504477990ecf7c852eebb7c85291772/_example/live-prefix/main.go#L9-L23

var LivePrefixState struct {
    LivePrefix string
    IsEnable   bool
}

func executor(in string) {
    fmt.Println("Your input: " + in)
    if in == "" {
        LivePrefixState.IsEnable = false
        LivePrefixState.LivePrefix = in
        return
    }
    LivePrefixState.LivePrefix = in + "> "
    LivePrefixState.IsEnable = true
}

...