Source file test/fixedbugs/issue31252.dir/c.go

     1  // Copyright 2019 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package c
     6  
     7  import (
     8  	"./a"
     9  	"./b"
    10  )
    11  
    12  type HandlerFunc func(*string)
    13  
    14  func RouterInit() {
    15  	//home API
    16  	homeIndex := &a.IndexController{}
    17  	GET("/home/index/index", homeIndex.Index)
    18  	//admin API
    19  	adminIndex := &b.IndexController{}
    20  	GET("/admin/index/index", adminIndex.Index)
    21  	return
    22  }
    23  
    24  func GET(path string, handlers ...HandlerFunc) {
    25  	return
    26  }
    27  

View as plain text