2016. november 10., csütörtök 21:20:46 UTC+1 időpontban Sergio Hunter a következőt írta: > > I can't because аccess to the database is only granted to me. > If leave my code and only add code which would be skip text rows and > continues to unpack the archive? > > We haven't asked for access to the db, just some sample code!
If you want to distinguish between (probably) JSON and other text, that's easy: JSON starts with '{'. If you want to distinguish between gzipped and non-gzipped text, that's easy: gzip starts with "\x1f\x8b": http://www.ietf.org/rfc/rfc1952.txt T -- 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.