~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/asn1/common.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        tagOctetString     = 4
26
26
        tagOID             = 6
27
27
        tagEnum            = 10
 
28
        tagUTF8String      = 12
28
29
        tagSequence        = 16
29
30
        tagSet             = 17
30
31
        tagPrintableString = 19
83
84
// parseFieldParameters will parse it into a fieldParameters structure,
84
85
// ignoring unknown parts of the string.
85
86
func parseFieldParameters(str string) (ret fieldParameters) {
86
 
        for _, part := range strings.Split(str, ",", -1) {
 
87
        for _, part := range strings.Split(str, ",") {
87
88
                switch {
88
89
                case part == "optional":
89
90
                        ret.optional = true