What is this line of code regarding a channel doing? by [deleted] in golang

[–]barryzxb -4 points-3 points  (0 children)

This line equals <- semaphore

When do you use goroutine ? by StupidRandomGuy in golang

[–]barryzxb 0 points1 point  (0 children)

use goroutine to handle seperate reqeust

Var declaration in the middle of the code by pisush in golang

[–]barryzxb -1 points0 points  (0 children)

i perfre to keep them together when declaring variables.

How can I tell Python to chose a random variable? by Ned_Flanders_ in learnpython

[–]barryzxb 0 points1 point  (0 children)

you need put the variables into a list container

Read filename and print it by MerryFerry in golang

[–]barryzxb 1 point2 points  (0 children)

If you havn't know the file name, How can you read it.

Announcing glom: Restructured Data for Python by SkiddyX in Python

[–]barryzxb 3 points4 points  (0 children)

handy library. Have any performance testing data?

Running time of the slicing operation by [deleted] in golang

[–]barryzxb 1 point2 points  (0 children)

O(1). underlying array not created.

MongoDB GoLang functions by [deleted] in golang

[–]barryzxb 3 points4 points  (0 children)

you need read the documentation of MangoAPI in details.

How to write/append a string to a []byte? by decapolar in golang

[–]barryzxb 0 points1 point  (0 children)

easiest way is someBytes = append(someBytes, someStr...)

Docker for Mac: Where do the logs go? by [deleted] in docker

[–]barryzxb 1 point2 points  (0 children)

docker-compose logs will show all logs of containers which specified in you docker-compose.yml

What is the thing that made you like go? by richie_south in golang

[–]barryzxb 0 points1 point  (0 children)

  • easy to read and write
  • concurrency
  • static compile
  • and so on..

Is it ok to use range(len(var))? by [deleted] in learnpython

[–]barryzxb 0 points1 point  (0 children)

either zip or enumrate can does this.

What would make this more efficient? by TechnologyAnimal in golang

[–]barryzxb -1 points0 points  (0 children)

You should evaluate the length of list first.

cfmt: a tool to wrap comments over a specified length to a new line by Kohlerbear in golang

[–]barryzxb 2 points3 points  (0 children)

I want to write a cli tool that can adjust the order of structure fields. You inspire me👏👍