Fix for Go release 2011-01-19/20
This commit is contained in:
		
							parent
							
								
									02d19ed0bd
								
							
						
					
					
						commit
						e36a8d35b8
					
				
					 1 changed files with 0 additions and 28 deletions
				
			
		
							
								
								
									
										28
									
								
								xmlx/node.go
									
										
									
									
									
								
							
							
						
						
									
										28
									
								
								xmlx/node.go
									
										
									
									
									
								
							| 
						 | 
					@ -117,20 +117,6 @@ func (this *Node) U64(namespace, name string) uint64 {
 | 
				
			||||||
// Deprecated - use Node.U64()
 | 
					// Deprecated - use Node.U64()
 | 
				
			||||||
func (this *Node) GetValueui64(namespace, name string) uint64 { return this.U64(namespace, name) }
 | 
					func (this *Node) GetValueui64(namespace, name string) uint64 { return this.U64(namespace, name) }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Get node value as float
 | 
					 | 
				
			||||||
func (this *Node) F(namespace, name string) float {
 | 
					 | 
				
			||||||
	if node := rec_SelectNode(this, namespace, name); node != nil && node.Value != "" {
 | 
					 | 
				
			||||||
		n, _ := strconv.Atof(node.Value)
 | 
					 | 
				
			||||||
		return n
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return 0
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Deprecated - use Node.F()
 | 
					 | 
				
			||||||
func (this *Node) GetValuef(namespace, name string) float { return this.F(namespace, name) }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Get node value as float32
 | 
					// Get node value as float32
 | 
				
			||||||
func (this *Node) F32(namespace, name string) float32 {
 | 
					func (this *Node) F32(namespace, name string) float32 {
 | 
				
			||||||
	if node := rec_SelectNode(this, namespace, name); node != nil && node.Value != "" {
 | 
						if node := rec_SelectNode(this, namespace, name); node != nil && node.Value != "" {
 | 
				
			||||||
| 
						 | 
					@ -231,20 +217,6 @@ func (this *Node) Ai64(namespace, name string) int64 {
 | 
				
			||||||
// Deprecated - use Node.Ai64()
 | 
					// Deprecated - use Node.Ai64()
 | 
				
			||||||
func (this *Node) GetAttri64(namespace, name string) int64 { return this.Ai64(namespace, name) }
 | 
					func (this *Node) GetAttri64(namespace, name string) int64 { return this.Ai64(namespace, name) }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Get attribute value as float
 | 
					 | 
				
			||||||
func (this *Node) Af(namespace, name string) float {
 | 
					 | 
				
			||||||
	if s := this.As(namespace, name); s != "" {
 | 
					 | 
				
			||||||
		n, _ := strconv.Atof(s)
 | 
					 | 
				
			||||||
		return n
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return 0
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Deprecated - use Node.Af()
 | 
					 | 
				
			||||||
func (this *Node) GetAttrf(namespace, name string) float { return this.Af(namespace, name) }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Get attribute value as float32
 | 
					// Get attribute value as float32
 | 
				
			||||||
func (this *Node) Af32(namespace, name string) float32 {
 | 
					func (this *Node) Af32(namespace, name string) float32 {
 | 
				
			||||||
	if s := this.As(namespace, name); s != "" {
 | 
						if s := this.As(namespace, name); s != "" {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue