Re: [go-nuts] MPEG-1 Video decoder, MP2 Audio decoder and MPEG-PS Demuxer in pure Go

2022-10-24 Thread Dimas Prawira
Nice Milan, thank you for sharing this. Regards On Sun, Oct 23, 2022 at 11:23 PM Milan Nikolic wrote: > A simple way to get video playback into your app or game. > https://github.com/gen2brain/mpeg > > There is also a live web example here https://gen2brain.github.io/mpeg. > The CPU usage is

Re: [go-nuts] Re: How can I break out of a goroutine if a condition is met?

2021-07-20 Thread Dimas Prawira
I personally like to use range channel to "break out" process in goroutine, for example : package main import ( "fmt" "sync" ) func main() { var wg sync.WaitGroup c := make(chan bool) wg.Add(1) go func() { defer wg.Done() for b := range c {

Re: [go-nuts] SFTPGo 2.0.0 Released

2021-02-07 Thread Dimas Prawira
Nice.. Best regards On Sat, Feb 6, 2021, 18:38 Nicola Murino wrote: > Hi all, > > I'm pleased to announce SFTPGo 2.0.0! > > SFTPGo is a fully featured and highly configurable SFTP server with > optional FTP/S and WebDAV support, written in Go. It can serve local > filesystem, S3 (compatible)

Re: [go-nuts] Using Golang to upload and download files in pcloud using cmd

2020-10-26 Thread Dimas Prawira
I think the example given in the repo is run on command line, all you have to do is customize it using cobra https://github.com/spf13/cobra On Mon, Oct 26, 2020, 23:27 Bharath Baiju wrote: > Hello all, > > I am trying to use golang-pcloud project > to

Re: [go-nuts] Go open source tools

2020-10-23 Thread Dimas Prawira
You can get and learn on their site (if any) or their repository, for example : 1. golang dep (https://golang.github.io/dep/) 2. glide (https://glide.sh/) hope that helps On Fri, Oct 23, 2020 at 11:57 AM durgasomes...@gmail.com < durgasomeswararao...@gmail.com> wrote: > Hi Team, > > Anyone

Re: [go-nuts] Debug http calls made using go http client

2020-08-23 Thread Dimas Prawira
There are several tools which you can use to help to inspect, 1. TCPmon, is a java-based tool for inspecting http call in between server and client. TCPmon also can be used to simulate slow connection. Work mechanism of TCPmon is as a proxy. So if I describe it as below [Your apps] --->

Re: [go-nuts] [generics] Replace () with <> or other character

2020-06-17 Thread Dimas Prawira
more and more like Java.. BR On Wed, Jun 17, 2020 at 11:36 PM Charles Crete wrote: > Based on the new proposal, having the type parameters as () seems very > confusing, as now 3 things in a row use (): > - Type parameters > - Function parameters/arguments > - Return tuple > > This results in

Re: [go-nuts] SSL socket listener

2020-06-03 Thread Dimas Prawira
Here is an example running server with TLS package main import ( "net/http" "log" ) func HelloServer(w http.ResponseWriter, req *http.Request) { w.Header().Set("Content-Type", "text/plain") w.Write([]byte("This is an example server.\n")) } func main() {

Re: [go-nuts] Getting 410 error from https://sum.golang.org/lookup/github.com for a private github repo

2020-05-18 Thread Dimas Prawira
I think this has issue reported https://github.com/golang/go/issues/35164 I have face same issue and what I do is to set sumdb off $export GOSUMDB=off and then re-gomod. Hope that help Regards Dimas On Tue, May 19, 2020 at 3:03 AM Dean Schulze wrote: > Go get doesn't work with private

Re: [go-nuts] How to work with multiple environment like dev, test, staging, prod in golang ?

2020-05-18 Thread Dimas Prawira
I am also Java Developer using SpringBoot as my framework, I use three kinds of application configuration files (dev, staging, production). But in Go, I / we use Consul for storing configuration so the configuration file will be only one. For configuration format I use Yaml format using viper (

Re: [go-nuts] [ANN] Golang Oriented to Aspects (goa) v0.0.1 is released!!!

2019-11-25 Thread Dimas Prawira
Nice... #clap BR On Tue, Nov 26, 2019, 4:47 AM Iván Corrales Solera < ivan.corrales.sol...@gmail.com> wrote: > Hey folks! > > I am so happy yo announce the first release of *Goa*. Goa is a library > that will drive you to the AOP (Aspect Oriented Paradigm) world! > > Even though I still have

Re: [go-nuts] liteide x36.2 released.

2019-11-12 Thread Dimas Prawira
Getting 400 Bad Request when accessing http://liteide.org On Sat, Nov 2, 2019, 9:32 PM visualfc wrote: > Hi, all. > LiteIDE X36.2 released! > This version fix gocode crash bug. Add new image viewer plugins. Folder > view support multi copy, move to trash. Fix windows floating dock > widget

Re: [go-nuts] GO Mod (modules) for dummies. Please help.

2019-10-18 Thread Dimas Prawira
Hi, I have reply thread about Go mod. You can search in the mailist history. Cheers -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [go-nuts] [ANN] go-resty v2.1.0 released - Simple HTTP and REST client library

2019-10-11 Thread Dimas Prawira
Thanks, I'll check it out. Cheers Dimas On Sat, Oct 12, 2019 at 4:32 AM Sam Whited wrote: > On Fri, Oct 11, 2019, at 21:24, Dimas Prawira wrote: > > Just test using got get > > You appear to be using an old version of Go that doesn't support modules > or have it turned off or

Re: [go-nuts] Problems with windows installation v1.31.1

2019-10-09 Thread Dimas Prawira
Go v1.12.10 still has godoc in the installer package, so if you want it maybe you can choose previous version. Best Regards On Wed, Oct 9, 2019, 11:46 PM Longeri Carlos wrote: > Hi, > I'm new to go. Just installed Go on a windows10 machine, v1.31.1. > > Somehow I don't have godoc.exe in the

Re: [go-nuts] go module & local package

2019-10-09 Thread Dimas Prawira
Let me define this first modules are collections of packages. In Go 11, I use go modules like the following: If both packages are in the same project, you could just do the following: In go.mod: module github.com/userName/moduleName and inside your

Re: [go-nuts] [ANN] Go Server Pages

2019-10-08 Thread Dimas Prawira
Nice work... Best regards On Wed, Oct 9, 2019, 12:16 AM Scott Pakin wrote: > I'm excited to announce the initial release of > > Go Server Pages > > Go Server Pages is an Apache module that lets you embed Go code within a > Web page. The Go code gets executed dynamically server-side. Here's a

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-28 Thread Dimas Prawira
migrations should not be _rarely_ if you are writing migration scripts often, that's a big big big big different problem cheers On Sat, Sep 28, 2019 at 8:03 PM Lutz Horn wrote: > alex.besogo...@gmail.com: > > But the main issue is that Go SQL interface SUCKS. It's verbose, hard to > > use and

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-28 Thread Dimas Prawira
t; > So even simple ORMs that allow mapping of result sets to objects help to > reduce boilerplate clutter. More advanced ORMs also offer simple type safe > queries: https://github.com/go-reform/reform > > It's still nowhere close to LINQ for C# or http://www.querydsl.com/ for >

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-27 Thread Dimas Prawira
if there's something you _don't_ know how to do in SQL, and it seems the ORM can do it for you, capture the raw SQL the ORM produces and tell me if it's easier for you to understand the SQL or the random ORM API. I 100% guarantee you that the raw SQL the ORM produces will be easier to understand

Re: [go-nuts] Go Time #100 with Robert Griesemer and myself

2019-09-27 Thread Dimas Prawira
Awesome, have to watch this.. cheers On Thu, Sep 26, 2019 at 6:14 AM Rob Pike wrote: > It's now live: https://changelog.com/gotime/100 > > > -rob > > -- > You received this message because you are subscribed to the

Re: [go-nuts] Golang library for - ORM & Schema Migration

2019-09-27 Thread Dimas Prawira
Many Gophers don't like ORM as : 1. ORM introduce an additional layer of abstraction that doesn't accomplish anything. 2. SQL syntax is more or less the same for every database. 3. If you learn an ORM in Java, you will only ever able to use that ORM knowledge in Java. If you learn SQL, you can use

Re: [go-nuts] redirecting http to https

2019-09-25 Thread Dimas Prawira
I would rather to use nginx for redirecting from http to https. On Wed, Sep 25, 2019, 6:37 AM 'Julia Ma' via golang-nuts < golang-nuts@googlegroups.com> wrote: > Hi all, > I recently realized that request.URL.Scheme is not the correct field to > check whether a request is https or not (thank you

Re: [go-nuts] Forking gotk3 not working?

2019-09-24 Thread Dimas Prawira
Maybe this is not the answer for the problem, just want to share about do 'go get-ing' a private repo, first you should do a configuration Here is the reference : https://stackoverflow.com/questions/27500861/whats-the-proper-way-to-go-get-a-private-repository On Tue, Sep 24, 2019, 11:11 PM

Re: [go-nuts] How to perform dynamic unmarsahlling

2019-09-12 Thread Dimas Prawira
Hi Abraham, To perform dynamic unmarshal, you can use reflect package in Go. May this reference give help : https://zenidas.wordpress.com/recipes/dynamic-unmarshalling-in-golang/ Thank you On Thu, Sep 12, 2019, 3:33 PM wrote: > Can anyone help me perform dynamic unmarshalling depending on