github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/goquery/doc.go (about) 1 // Copyright (c) 2012-2013, Martin Angers & Contributors 2 // All rights reserved. 3 // 4 // Redistribution and use in source and binary forms, with or without modification, 5 // are permitted provided that the following conditions are met: 6 // 7 // * Redistributions of source code must retain the above copyright notice, 8 // this list of conditions and the following disclaimer. 9 // * Redistributions in binary form must reproduce the above copyright notice, 10 // this list of conditions and the following disclaimer in the documentation and/or 11 // other materials provided with the distribution. 12 // * Neither the name of the author nor the names of its contributors may be used to 13 // endorse or promote products derived from this software without specific prior written permission. 14 // 15 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS 16 // OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 17 // AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 18 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 21 // WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY 22 // WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 24 /* 25 Package goquery implements features similar to jQuery, including the chainable 26 syntax, to manipulate and query an HTML document (the modification functions of jQuery are not included). 27 28 It uses Cascadia as CSS selector (similar to Sizzle for jQuery). 29 30 To provide a chainable interface, error management is strict, and goquery panics 31 if an invalid Cascadia selector is used (this is consistent with the behavior of 32 jQuery/Sizzle/document.querySelectorAll, where an error is thrown). This is 33 necessary since multiple return values cannot be used to allow a chainable 34 interface. 35 36 It is hosted on GitHub, along with additional documentation in the README.md 37 file: https://yougam/libraries/puerkitobio/goquery 38 39 The various methods are split into files based on the category of behavior: 40 41 * array.go : array-like positional manipulation of the selection. 42 - Eq() 43 - First() 44 - Get() 45 - Index...() 46 - Last() 47 - Slice() 48 49 * expand.go : methods that expand or augment the selection's set. 50 - Add...() 51 - AndSelf() 52 - Union(), which is an alias for AddSelection() 53 54 * filter.go : filtering methods, that reduce the selection's set. 55 - End() 56 - Filter...() 57 - Has...() 58 - Intersection(), which is an alias of FilterSelection() 59 - Not...() 60 61 * iteration.go : methods to loop over the selection's nodes. 62 - Each() 63 - EachWithBreak() 64 - Map() 65 66 * property.go : methods that inspect and get the node's properties values. 67 - Attr() 68 - Html() 69 - Length() 70 - Size(), which is an alias for Length() 71 - Text() 72 73 * query.go : methods that query, or reflect, a node's identity. 74 - Contains() 75 - HasClass() 76 - Is...() 77 78 * traversal.go : methods to traverse the HTML document tree. 79 - Children...() 80 - Contents() 81 - Find...() 82 - Next...() 83 - Parent[s]...() 84 - Prev...() 85 - Siblings...() 86 87 * type.go : definition of the types exposed by GoQuery. 88 - Document 89 - Selection 90 */ 91 package goquery