Better HN
topnewbestaskshowjobs
Log inSign up

sunfmin

39 karma · joined Jun 23, 2011 (15y ago) · 23 submissions

Submissions

comment 4y ago · link · parent

Similar thing in Go: https://github.com/theplant/htmlgo

comment 4y ago · link · parent

People interested in this might also find my project interesting: https://docs.goplaid.dev, https://github.com/goplaid/

comment 4y ago · link · parent

https://docs.goplaid.dev completely embrace low-JS in the Go world, you can write pretty complex UI interactions without write a single line of JavaScript, but only Go code.

It also integrate heavy duty UI component library like Vuetify, So you can use it easily in Go code.

It even go further to have presets that help you easily build Admin UI with much flexibility. https://docs.goplaid.dev/samples/presets-detail-page-cards/c...

4.

Easiest Go Package to Create Admin UI(docs.goplaid.dev ↗)

1 points · by sunfmin · 6y ago · discuss

5.

Best Way to Generate HTML in Go(github.com ↗)

3 points · by sunfmin · 6y ago · discuss

6.

Logtracer: Use opentracing-go API to print pretty structural trace log in Go(github.com ↗)

4 points · by sunfmin · 7y ago · discuss

7.

Instant Web Admin in Go(docs.goplaid.dev ↗)

2 points · by sunfmin · 7y ago · discuss

8.

Yet Another Way to Build Web Applications in Go(docs.goplaid.dev ↗)

2 points · by sunfmin · 7y ago · discuss

9.

Go: hardcoretest.Mark(t), So that the test won't be run by default(github.com ↗)

1 points · by sunfmin · 7y ago · discuss

10.

Generate Go code with structured blocks and composition(github.com ↗)

1 points · by sunfmin · 7y ago · discuss

11.

Type safe and modularize way to generate HTML on server side in Go(github.com ↗)

12 points · by sunfmin · 7y ago · 3 comments

12.

Generate an opinionated Go package structure that help you organize code(github.com ↗)

2 points · by sunfmin · 8y ago · discuss

13.

Go: Super fast batch inserts/updates to sql database, by packing data into sql(github.com ↗)

4 points · by sunfmin · 9y ago · 1 comment

14.

Convert Go func to http.HandleFunc that handle json request and response json(github.com ↗)

1 points · by sunfmin · 10y ago · discuss

15.

Reflectutils: Easier way to use reflect to set values in Go(github.com ↗)

1 points · by sunfmin · 10y ago · discuss

comment 11y ago · link · parent

Bookmarked and Stared!

comment 11y ago · link · parent

Thanks, but there will be I/O waiting stuff right? For that whois command example, I find the CPU usage is zero if I am not running it parallel.

comment 11y ago · link · parent

Yes, I often find myself lost in this trivial channels + goroutines + WaitGroup combination. For my self I'd prefer cast interface{}, :-)

comment 11y ago · link · parent

I guess it is a parallel queue, It saves the trouble to worry about goroutines and channels and synchronizations, encapsulated the logic that talked in http://blog.golang.org/pipelines last part. To make use of that pattern easier.

I have quite a few use cases myself:

1. Say there is a article on the web, that contains dozens of images embed in the html. Which I want to crawl the article, and Also the images, and put the image into S3 for faster serve. I can use the fanout concurrency pattern to put upload all the images simultaneously to S3 to make it faster.

2. Say I have 20 mysql node sharded data, I want to fetch top 50 latest created data from all of them, and sort it to and show it to user after.

20.

Go package: fanout – make writing parallel code even easier(github.com ↗)

42 points · by sunfmin · 11y ago · 24 comments

comment 13y ago · link · parent

I actually want to see this:

    hd.Where("name = ?", name).Where("category = ?", category)

So that you can do conditional where easily, for example:

    hd = hd.Where("name = ?", name)
    if category != "" {
        hd = hd.Where("category = ?", category)
    }
But It doesn't seem to support this?

comment 14y ago · link · parent

In early 2012, 37signals will introduce Basecamp Next , And you'll see why 2012 won't be like "2012"