Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Dividir cadenas | Abreviación de rangos de números

Received: by 10.52.23.70 with SMTP id k6mr18688843vdf.1.1319387738329;
        Sun, 23 Oct 2011 09:35:38 -0700 (PDT)
X-BeenThere: golang-spanish@googlegroups.com
Received: by 10.220.149.17 with SMTP id r17ls11047417vcv.0.gmail; Sun, 23 Oct
 2011 09:35:37 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.150.136 with SMTP id y8mr1713217vcv.10.1319387737826; Sun,
 23 Oct 2011 09:35:37 -0700 (PDT)
Received: by gk10g2000vbb.googlegroups.com with HTTP; Sun, 23 Oct 2011
 09:35:37 -0700 (PDT)
Date: Sun, 23 Oct 2011 09:35:37 -0700 (PDT)
In-Reply-To: <0e7dba74-6917-4b72-a7d5-20d7ab340d9e@hj4g2000vbb.googlegroups.com>
References: <75f21948-cb70-4744-abe2-b38f445b39aa@f36g2000vbm.googlegroups.com>
 <4A8EBF9D-67E6-4B4D-BB53-5EAB7E5A2BDD@gmail.com> <b76b72de-3f00-4333-8c72-b0094e836865@v15g2000vbm.googlegroups.com>
 <607B0D1C-9590-403F-A091-00D369B47B5B@gmail.com> <0e7dba74-6917-4b72-a7d5-20d7ab340d9e@hj4g2000vbb.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1,gzip(gfe)
Message-ID: <77cafaa6-9b94-4b32-820f-2e9ddf6d19bc@gk10g2000vbb.googlegroups.com>
Subject: =?ISO-8859-1?Q?=5BSolucionado=5D_Dividir_cadenas_=7C_Abreviaci=F3n_de_rang?=
	=?ISO-8859-1?Q?os_de_n=FAmeros?=
From: oco8 <ruizh...@gmail.com>
To: golang-spanish <golang-spanish@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Ya lo he conseguido. Se trataba simplemente de tratar string como
[]int, siendo cada int una runa. Entonces, lo que escrib=ED ser=EDa:
number :=3D flag.Args(0)[len(flag.Args(0)) - 1]
suffix :=3D flag.Args(0)[:len(flag.Args(0)) - 1]
// o m=E1s claro:
arg :=3D flag.Args(0)
number :=3D arg[:len(arg) - 1] // =3D=3D number :=3D arg[0:len(arg) - 1]
suffix :=3D arg[len(arg) - 1]

Lo =FAnico que me quedar=EDa es saber si puedo hacer algo como: /*case
'0'...'9':*/ para abreviar /*case '0', '1', '2', '3', '4', '5', '6',
'7', '8', '9':*/.